Chat room php & amp; mysql (1 ). What is nameindex1.php on the first page? Include .. signupmysql. php; $ time1time (); $ userid980000409; echo $ n; if ($ n1) {$ useridtime (); $ nickg. $ userid; $ last_time $ userid; $ sqloud // The first page name = "index1.php"
Include "../signup/mysql. php ";
$ Time1 = time ();
// $ Userid = 983530409;
Echo $ n;
If ($ n = 1 ){
$ Userid = time ();
$ Nick = "g". $ userid;
$ Last_time = $ userid;
$ SQL = "insert into chat_user (userid, id, last_time) values ('$ userid',' $ nick ',' $ last_time ')";
Mysql_query ($ SQL) or die (mysql_error ());
$ SQL = "insert into chat_user_list (userid, id, last_time) values ('$ userid',' $ nick ',' $ last_time ')";
Mysql_query ($ SQL) or die (mysql_error ());
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