使用 $email 验证会出现 mysql_syntax 错误
我有以下代码:
$update = mysql_query("UPDATE member_regok SET newmemberid = '.$last_id.', status = 1 WHERE email = '".$email."'");
此代码返回““@email.com”后的语法错误”。我可以用 echo 返回所有这些 $var 并得到结果,但运行此查询不起作用。使用 $email 验证有问题吗?
i have the following code:
$update = mysql_query("UPDATE member_regok SET newmemberid = '.$last_id.', status = 1 WHERE email = '".$email."'");
This code returns "syntax error after "@email.com" ". I can return all these $var with echo and I get the result but running this query doe not work. Is there a problem with validating with $email?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试:
You can try: