DATETIME ISSUE

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Dilbert137
Forum Commoner
Posts: 57
Joined: Sat Jun 02, 2007 5:02 am
Location: Mauritius

DATETIME ISSUE

Post by Dilbert137 »

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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

The program does not recognize the NOW().
And instead does what? Symptoms?
Dilbert137
Forum Commoner
Posts: 57
Joined: Sat Jun 02, 2007 5:02 am
Location: Mauritius

Post by Dilbert137 »

Volka It's solved it was a field which was not well named.

:roll:

Thanks
Post Reply