Chat room Php&mysql (i) _php tutorial

Source: Internet
Author: User
First page name= "index1.php"



Include ". /signup/mysql.php ";
$time 1=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 ());


Echo LOADING .....";
echo "";

}

if ($n ==983530409)
{

$sql = "Select userid,sex,passwd from user where id= ' $n '";
$result =mysql_query ($sql);
$row =mysql_fetch_array ($result);
$nick = $row ["userid"];
$passwd = $row ["passwd"];
$sex = $row ["Sex"];

$sql = "INSERT into Chat_user (userid,passwd,sex,last_time,id) VALUES (' $n ', ' $passwd ', ' $sex ', ' $time 1 ', ' $nick ')";
mysql_query ($sql) or Die (Mysql_error ());




Echo LOADING .....";
echo "";
}


?>


<title>::: Feit Chat Room:::</title>













&lt;noframes&gt;&amp;lt;br&amp;gt;&amp;lt;body bgcolor= "#FFFFFF" text= "#000000" &amp;gt; &amp;lt;br&amp;gt;&amp;lt;p&amp;gt; sorry! This is a sub-frame page, but because your browser does not support, so cannot browse! &amp;lt;/p&amp;gt; &amp;lt;br&amp;gt;&amp;lt;p&amp;gt;sorry! This page uses frames,but your browser doesn ' t support them .&amp;lt;/p&amp;gt; &amp;lt;br&amp;gt;&amp;lt;/body&amp;gt; &amp;lt;br&amp;gt;&lt;/noframes&gt;

http://www.bkjia.com/PHPjc/315752.html www.bkjia.com true http://www.bkjia.com/PHPjc/315752.html techarticle //First page name=index1.php. Include: /signup/mysql.php; $time 1=time (); $userid = 983530409; Echo $n; if ($n ==1) {$userid =time (); $nick =g $userid; $last _time= $userid; $sql =ins ...

  • 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.