Forum Moderators: coopster
Where should I look? Any recommandation? Does it have to do with timestamp in the db?
Thanx in advance. Raul
Date and Time Functions [mysql.com]
NOW()
SYSDATE()
CURRENT_TIMESTAMP
Returns the current date and time as a value in 'YYYY-MM-DD HH:MM:SS' or YYYYMMDDHHMMSS format, depending on whether the function is used in a string or numeric context:mysql> SELECT NOW();
-> '1997-12-15 23:50:26'
mysql> SELECT NOW() + 0;
-> 19971215235026Note that NOW() is only evaluated once per query, namely at the start of query execution. This means that multiple references to NOW() within a single query will always give the same time.
I also put the hidden input like u said:
<input type="hidden" name="date" value="<? echo $date;?>">
Is it important how to put the line below with the Y,M d,...etc?
$date = date("Y, M d, H:i s");
Don't know what I did wrong?