Jump to content

[SOLVED] inserting now() isn't working


shadiadiph

Recommended Posts

I have the following sql insert statement

 

$updatesql ="update tblclientdetails set loginfailed ='0', logged='Yes', timeslogged = timeslogged +1, dtlogged = now(), tmlogged = now() where username='$username'";

 

dtlogged is set as a DATE field in the database.

tmlogged is set as a TIME field in the database.

 

it is writing dtlogged fine but tmlogged is not it is always showing 00:00:00 any ideas?

Link to comment
https://forums.phpfreaks.com/topic/147532-solved-inserting-now-isnt-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.