• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Gesior acc problem - Latestnews.php

woocSlave

New Member
Joined
Apr 18, 2010
Messages
63
Reaction score
0
Location
Wroclaw <3
I have problem!
Look that,when i write NEW news -

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 Something is wrong in your syntax obok ' 'Woocslave', 1, 0, 'TEST TO OTLAND', 'TEST TO OTLAND')' w linii 1' in /home/ots/www/latestnews.php:266 Stack trace: #0 /home/ots/www/latestnews.php(266): PDO->query('INSERT INTO `z_...') #1 /home/ots/www/index.php(70): include('/home/ots/www/l...') #2 {main} thrown in /home/ots/www/latestnews.php on line 266

Line 266 -
$SQL->query('INSERT INTO '.$SQL->tableName('z_news_big').' (hide_news, date, author, author_id, image_id, topic, text) VALUES (0, '.$time.', '.$SQL->quote($news_name).', '.$account_logged->getId().', '.$news_icon.', '.$SQL->quote($news_topic).', '.$SQL->quote($news_text).')');
//show added data

Help please.


##
When i edit old news,this problem does not have this bug
 
Last edited:
Back
Top