php执行mysql语句问题
$id=1; 这个是确定没问题
这个执行就错误
$sql="update admin set pass='$pass1' where id=$id;";
$mysql=new MysqlHelper();
$count=$mysql->query($sql);
$mysql.close();
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
这个执行就正确
$sql="update admin set pass='$pass1' where id=1;";‘
$mysql=new MysqlHelper();
$count=$mysql->query($sql);
$mysql.close();
0
0
相关文章
ini_set()在PHP中的作用是什么?
在PHP中的readlink()函数
我们如何编写PHP脚本来释放与MySQL结果关联的游标内存?
PHP intdiv() 函数
我们如何使用PHP脚本删除MySQL数据库?
相关标签:
本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门AI工具













