sabret00the
06-30-2006, 10:13 AM
i've never had this error, however the error seems to be on the values line of the query, any idea what i've done wrong?
$db->query_write("
INSERT INTO ej_entry(journalid, userid, title, pagetext, entry_date, dateline, music, security, commentcount, entryid)
VALUES($journal[newjournalid], $journal[userid], '" . $db->escape_string($journal[title]) . "', '" . $db->escape_string($journal[entry]) . "', $journal[timestamp], $journal[timestamp], '" . $db->escape_string($journal[np]) . "', '" . (($journal[enabled] == 0 OR $journal[private] == 1) ? 'noone' : 'everyone') . "', $journal[comments], $journal[entryid])
");
FIX =
$db->query_write("
INSERT INTO ej_entry(journalid, userid, title, pagetext, entry_date, dateline, music, security, commentcount, entryid)
VALUES($journal[newjournalid], $journal[userid], '" . $db->escape_string($journal[title]) . "', '" . $db->escape_string($journal[entry]) . "', $journal[timestamp], $journal[timestamp], '" . $db->escape_string($journal[np]) . "', '" . (($journal['enabled'] == 0 OR $journal['private'] == 1) ? 'noone' : 'everyone') . "', $journal[comments], $journal[entryid])
");
$db->query_write("
INSERT INTO ej_entry(journalid, userid, title, pagetext, entry_date, dateline, music, security, commentcount, entryid)
VALUES($journal[newjournalid], $journal[userid], '" . $db->escape_string($journal[title]) . "', '" . $db->escape_string($journal[entry]) . "', $journal[timestamp], $journal[timestamp], '" . $db->escape_string($journal[np]) . "', '" . (($journal[enabled] == 0 OR $journal[private] == 1) ? 'noone' : 'everyone') . "', $journal[comments], $journal[entryid])
");
FIX =
$db->query_write("
INSERT INTO ej_entry(journalid, userid, title, pagetext, entry_date, dateline, music, security, commentcount, entryid)
VALUES($journal[newjournalid], $journal[userid], '" . $db->escape_string($journal[title]) . "', '" . $db->escape_string($journal[entry]) . "', $journal[timestamp], $journal[timestamp], '" . $db->escape_string($journal[np]) . "', '" . (($journal['enabled'] == 0 OR $journal['private'] == 1) ? 'noone' : 'everyone') . "', $journal[comments], $journal[entryid])
");