这个sql查询有什么问题?他在哭:(
("INSERT INTO " . PREFIX . "messages (from, to, title, message, date)
VALUES (" . $from . ", " . $to . ", " . $subject . ", " . $message . ", NOW())");
最佳答案
您使用的是mysql还是microsoft sql server?现在()在SQL Server中不起作用;需要使用getDate()代替。