简体   繁体   English

Php 致命错误未捕获的 PDOException

[英]Php fatal error Uncaught PDOException

I have problem like this我有这样的问题

Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax;致命错误:未捕获的 PDOException:SQLSTATE[42000]:语法错误或访问冲突:1064 您的 SQL 语法有错误; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TekstSrpski='Nova vakcina protiv HIV virusa prošla je početna ispitivanja ' at line 1 in检查与您的 MariaDB 服务器版本相对应的手册,在第 1 行的“TekstSrpski='Nova vakcina protiv HIV virusa prošla je početna ispitivanja”附近使用正确的语法
C:\\xampp\\htdocs\\unija\\aids\\admin\\izmenivest.php:77 Stack trace: #0 C:\\xampp\\htdocs\\unija\\aids\\admin\\izmenivest.php:77 堆栈跟踪:#0
C:\\xampp\\htdocs\\unija\\aids\\admin\\izmenivest.php(77): PDOStatement->execute() #1 {main} thrown in C:\\xampp\\htdocs\\unija\\aids\\admin\\izmenivest.php(77): PDOStatement->execute() #1 {main} 被抛出
C:\\xampp\\htdocs\\unija\\aids\\admin\\izmenivest.php on line 77 C:\\xampp\\htdocs\\unija\\aids\\admin\\izmenivest.php 第 77 行

On Code I can't post code here i don't know why so i upload it on http://www.gamers.rs/izmeni.txt Plese somebodey help me :)在代码上我不能在这里发布代码我不知道为什么所以我把它上传到http://www.gamers.rs/izmeni.txt请有人帮我 :)

1064 error message always says "near..." and it almost always points exactly at or immediately after the bad syntax. 1064 错误消息总是说“near...”并且它几乎总是准确地指向或紧跟在错误的语法之后。

Check the punctuation (or lack of it) just before TekstSrpski=...检查TekstSrpski=...之前的标点符号(或缺少标点符号)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM