0 / 0 / 0
Регистрация: 25.10.2015
Сообщений: 14
|
||||||
1 | ||||||
MySQL Fatal error: Uncaught exception 'mysqli_sql_exception' with message 'You have an error in your SQL syntax25.10.2015, 20:12. Показов 10752. Ответов 3
Метки нет (Все метки)
Всем доброго времени суток. Коллеги, помогите пожалуйста решить такую проблему: не проходят запросы к БД.
Вот сама база: База данных: testbd Время создания: Окт 25 2015 г., 17:28 Создан: phpMyAdmin 4.0.10.10 / MySQL 5.5.45 SQL-запрос: SELECT * FROM `bazatest` LIMIT 0, 50 ; Строки: 2 id name znachenie 1 parametra 100 2 parametrb 200 вот код:
OK Fatal error: Uncaught exception 'mysqli_sql_exception' with message '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 ''bazatest' WHERE 'id' = 1' at line 1' in C:\Users\Vladimir\Desktop\Server\OpenServer\domains\testwww\module\news\main.php :21 Stack trace: #0 C:\Users\Vladimir\Desktop\Server\OpenServer\domains\testwww\module\news\main.php (21): mysqli_query(Object(mysqli), 'SELECT 'znachen...') #1 C:\Users\Vladimir\Desktop\Server\OpenServer\domains\testwww\index.php(63): include('C:\Users\Vladim...') #2 {main} thrown inC:\Users\Vladimir\Desktop\Server\OpenServer\domains\testwww\module\news\main.php on line 21 Использую Open Server. В логах: [25-Oct-2015 19:00:41 Europe/Moscow] PHP Fatal error: Uncaught exception 'mysqli_sql_exception' with message '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 ''bazatest' WHERE 'id' = 1' at line 1' in C:\Users\Vladimir\Desktop\Server\OpenServer\domains\testwww\module\news\main.php :21 Stack trace: #0 C:\Users\Vladimir\Desktop\Server\OpenServer\domains\testwww\module\news\main.php (21): mysqli_query(Object(mysqli), 'SELECT 'znachen...') #1 C:\Users\Vladimir\Desktop\Server\OpenServer\domains\testwww\index.php(63): include('C:\Users\Vladim...') #2 {main} thrown in C:\Users\Vladimir\Desktop\Server\OpenServer\domains\testwww\module\news\main.php on line 21 Только начинаю осваивать PHP и MySQL. Не могу разобраться в чём ошибка, куда копать?
0
|
25.10.2015, 20:12 | |
Ответы с готовыми решениями:
3
Ошибка Uncaught exception 'mysqli_sql_exception' with message 'You have an error in your SQL syntax; check the manual th Проверка исключений PDO. Fatal error: Uncaught exception Ошибка - Fatal error: Uncaught Error: Call to undefined function mysql_connect() Ошибка Fatal error: Uncaught Error: Call to undefined function mysql_query() |
4925 / 3920 / 1620
Регистрация: 24.04.2014
Сообщений: 11,441
|
|
25.10.2015, 20:16 | 2 |
3
|
0 / 0 / 0
Регистрация: 25.10.2015
Сообщений: 14
|
|
25.10.2015, 23:43 [ТС] | 3 |
спасибо огромное за помощь, все работает!
0
|
32 / 30 / 11
Регистрация: 27.09.2014
Сообщений: 359
|
|
23.09.2016, 08:00 | 4 |
Jewbacabra, А я мучаюсь, и не пойму в чём дело. Спасибо.
0
|
23.09.2016, 08:00 | |
23.09.2016, 08:00 | |
Помогаю со студенческими работами здесь
4
Fatal error: Uncaught Error: Call to undefined function split() Fatal error: Uncaught Error: Call to undefined function mysql_query() Fatal error: Uncaught Error: Call to undefined function mcrypt_ecb() Ошибка Fatal error: Uncaught Error: Call to undefined method mysqli_stmt::rowCount() Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |