PHP / MYSQL帮助 - 意外的T_VARIABLE [英] PHP/MYSQL Help - unexpected T_VARIABLE

查看:114
本文介绍了PHP / MYSQL帮助 - 意外的T_VARIABLE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要编辑个人资料页面,我希望用户能够更改用户名和电子邮件地址。

I am trying to make a edit profile page and i want the user to be able to change there username and email address. I've been going at this problem now for sometime and need your help.


解析错误:语法错误,意外的T_VARIABLE

Parse error: syntax error, unexpected T_VARIABLE



$edit = mysql_query("UPDATE users (Username, EmailAddress) VALUES('".$newusername."', '".$newemail."') WHERE UserID="$_SESSION['UserID']"");


推荐答案

c> $ _ SESSION ['UserID']

you're missing some dots around $_SESSION['UserID']

$edit = mysql_query("UPDATE users (Username, EmailAddress) VALUES('".$newusername."', '".$newemail."') WHERE UserID=" . $_SESSION['UserID']);

这篇关于PHP / MYSQL帮助 - 意外的T_VARIABLE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆