|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-01-26 11:40 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
./configure --with-mysql=/mysql --enable-bcmath --with-gd --with-xml --with-imap --with-dbm --with-apxs=/apache/bin/apxs The code before update: $today = date("Y-m-d H:i:00"); $requete = "insert into table (id, date) VALUES (NULL, \"$today\")"; $resultat = mysql_query($requete); The result: = 0000-00-00 00:00:00 After some modification: $requete = "insert into table (id, date) VALUES (NULL, now())"; $resultat = mysql_query($requete); The result: = 2001-01-25 19:38:24 Conclusion: I think there are a incompatibility with de date format of mysql. I use mysql-3.23.32.