what is wrong with this sql query? he is crying on NOW()
:(
("INSERT INTO " . PREFIX . "messages (from, to, title, message, date)
VALUES (" . $from . ", " . $to . ", " . $subject . ", " . $message . ", NOW())");
what is wrong with this sql query? he is crying on NOW()
:(
("INSERT INTO " . PREFIX . "messages (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.