我一直收到错误: –
“You have an error in your sql Syntax; check the manual that
corresponds to your MariaDB server version for the right Syntax to use
near ‘Password=’evertonblues’ Forename=’Josh’ Surname=’Edmondson’
Date of Birth
=’199′ at line 1″
运行更新查询时出错.
$result = MysqLi_query($con, "UPDATE Users SET Username='".$newUsername."' Password='".$newPassword."' Forename='".$newForename."' Surname='".$newSurname."' `Date of Birth`='".$newDateofBirth."' Address='".$newAddress."' `Post Code`='".$newPostcode."' Email='".$newEmail."' `Phone Number`='".$newPhonenumber."' WHERE `User ID`='".$newUserid."';");
解决方法:
你忘记了一堆逗号:
..snip... SET Username='".$newUsername."' Password='".$newPassw
^-- and many others
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。