Chat room php & amp; mysql (V ). Page 5 namechangenick. php? Include.. signupmysql. php; echo $ userid; if ($ actionok) {$ sqlselect * fromchat_user_listwhereuser; $ resultmysql_query ($ SQL) name = "changenick. php"
Include "../signup/mysql. php ";
// Echo $ userid;
If ($ action = "OK ")
{
$ SQL = "select * from chat_user_list where userid = '$ nick '";
$ Result = mysql_query ($ SQL) or die (mysql_error ());
If (! $ Result) echo "this name has been occupied by another person. please enter it again ";
Else
{
$ SQL = "update chat_user_list set id = '$ nick', passwd = '$ passwd', sex =' $ sex' where userid = '$ userid '";
$ Result = mysql_query ($ SQL) or die (mysql_error ());
$ SQL = "update chat_user set id = '$ nick', passwd = '$ passwd', sex =' $ sex' where userid = '$ userid '";
$ Result = mysql_query ($ SQL) or die (mysql_error ());
}
If ($ result ){
Echo"
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.