DATETIME ISSUE
Posted: Sun Jun 10, 2007 5:24 am
Dear All,
I'm having an issue while trying to put the NOW() code in the insert sql statement of my codes. The program does not recognize the NOW(). Can someone help me.
$ajouter="insert into guestbook(Name_User,Address_User,eMail_User,Url_User,Comments_User,Date_User) values('$name','$adresse','$email','$url','$commentaires',NOW())";
mysql_query($ajouter);
Date_User field is of type datetime
Thanks
Dilbert137
I'm having an issue while trying to put the NOW() code in the insert sql statement of my codes. The program does not recognize the NOW(). Can someone help me.
$ajouter="insert into guestbook(Name_User,Address_User,eMail_User,Url_User,Comments_User,Date_User) values('$name','$adresse','$email','$url','$commentaires',NOW())";
mysql_query($ajouter);
Date_User field is of type datetime
Thanks
Dilbert137