Could someone help me with this syntax? I can't seem to figure out what to put for the datum column.
I know the error's from the datum field, but I don't know what to put.
Here's my code:
[code:1]
$query = "INSERT INTO #__uddeim (fromid, toid, message, datum, disablereply, systemmessage)
VALUES (64, 62, 'your message', (timestamp
now), 1, 'Wildfire')";
$db->setQuery( $query );
if (!$db->query()) {
die("SQL error" . $db->stderr(true));
}[/code:1]
& I get this error:
[code:1]SQL errorDB function failed with error number 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'now), 1, 'Wildfire')' at line 2 SQL=INSERT INTO ***_uddeim (fromid, toid, message, datum, disablereply, systemmessage) VALUES (64, 62, 'your message', (timestamp now), 1, 'Wildfire')
SQL =
INSERT INTO ***_uddeim (fromid, toid, message, datum, disablereply, systemmessage)
VALUES (64, 62, 'your message', (timestamp now), 1, 'Wildfire')
[/code:1]
Thanks,
-David