anonīms Posted February 21, 2009 Report Posted February 21, 2009 (edited) izvadīšana date('d-m-Y H:m:s',$komentari['laiks']) int(11) Pats kods: http://paste.php.lv/29f7198ad068f019579e72...18ae88?lang=php Kas varētu būt par vainu, ka katrs komentārs rādas tā, itkā tas būtu rakstīts stundas otrajā minūtē? (ar stundu un sekundi viss ok, bet minūti nē) Edited February 21, 2009 by anonīms Quote
bubu Posted February 21, 2009 Report Posted February 21, 2009 Varbūt tāpēc, ka m ir mēnesis, nevis minūte? Un nelieto php time() funkciju, ja tu gribi ielikt tekošo laiku datubāzē, lieto MySQL NOW() funkciju: INSERT INTO (a, b, laiks, c) VALUES ($a, $b, NOW(), $c) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.