【发布时间】:2016-07-07 01:21:08
【问题描述】:
$query = "update admin set username = $username and password = $password where id = 1;
在 php 中使用此代码的任何替代方法?
【问题讨论】:
-
admin - 表名、用户名和密码是字段名,$username 和 $password 是要在每个字段中分配的值。
-
没有任何错误检查。
-
如何在php中使用这段代码?