UPDATE table SET time = NOW() not working
I'm very confused here, this is like lesson 1 mysql top开发者_JS百科ic, but..
$update = mysql_query("UPDATE usuarios SET lastactivity = NOW() WHERE id = '$id'") or die(mysql_error());
Why does this not update lastactivity
from usuarios
to current_timestamp
?
lastactivity timestamp No CURRENT_TIMESTAMP
精彩评论