开发者

php time function

开发者 https://www.devze.com 2022-12-21 10:34 出处:网络
what is wrong with this sql query? he is crying on NOW() :( (\"INSERT INTO \" . PREFIX . \"mess开发者_开发技巧ages (from, to, title, message, date)

what is wrong with this sql query? he is crying on NOW() :(

("INSERT INTO " . PREFIX . "mess开发者_开发技巧ages (from, to, title, message, date) 
VALUES (" . $from . ", " . $to . ", " . $subject . ", " . $message . ", NOW())");


Are you using MySQL or Microsoft SQL Server? NOW() doesn't work in SQL Server; need to use GETDATE() instead.


Maybe using current time stamp would be better idea, I don't know it, just type timestamp in mysql you'll find it on google

0

精彩评论

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