Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
“这个 MySql 和 php 构造的宽度不对?
$zapytanie = "UPDATE Users SET usr_premium_expire = '$data' WHERE usr_login = '$login'; ";
MySQL 语句中不需要分号。如果出现任何进一步的错误,请尝试
mysql_error();
执行完语句后。
要验证发送的数据,请尝试
echo $zapytanie;
如有疑问,也可以转义变量:
"UPDATE Users SET usr_premium_expire='" . $data . "' WHERE usr_login='" . $login . "'"