Chatting room php & mysql (5)

Source: Internet
Author: User
Page 5 namechangenick. php & lt ;? & Nbsp; include .. signupMySQL (the best combination with PHP ). php; echo & #36; userid; if (& #36; actionok) & #123; & #36; sqlselect * fromchat_user_listwhere the fifth page name = "changenick. php"


Include "../signup/MySQL (the best combination with PHP). php ";
// Echo $ userid;
If ($ action = "OK ")
{
$ SQL = "select * from chat_user_list where userid = '$ nick '";
$ Result = MySQL (the best combination with PHP) _ query ($ SQL) or die (the best combination of MySQL (and PHP) _ 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 (the best combination with PHP) _ query ($ SQL) or die (the best combination of MySQL (and PHP) _ error ());

$ SQL = "update chat_user set id = '$ nick', passwd = '$ passwd', sex =' $ sex' where userid = '$ userid '";
$ Result = MySQL (the best combination with PHP) _ query ($ SQL) or die (the best combination of MySQL (and PHP) _ error ());
}
If ($ result ){
Echo"

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.