Warning: Cannot use a scalar value as an array in /home/admin/public_html/forum/include/fm.class.php on line 757
Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/include/fm.class.php on line 770 Форумы портала PHP.SU :: Версия для печати :: Странно не пойму в чём ошибка ЗАПРОСА
$q="SELECT * FROM offline WHERE to = '".$peremen."' ORDER by id";
?>
Может быть, переменная $peremen содержит одинарную кавычку?
Цитата:
SQL-запрос:
SELECT * FROM `songs` WHERE title='Вся жизнь впе'реди'
Ответ MySQL:
#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 'реди'' at line 1