开发者

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   
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜