
06-30-2006, 09:13 AM
|
 |
|
|
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
FIXED: unexpected T_PRIVATE
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?
PHP Code:
$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 =
PHP Code:
$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])
");
|