My life would suck without chat room php&mysql three

Source: Internet
Author: User
Third page name= "frame3.php"
Include ". /signup/mysql.php ";
Echo $userid;
Echo $private;
if ($p) $p = 1;
else $p = 0;
if ($action = "OK") and ($p)) {
$sql = "Select Userid,id from chat_user_list where userid= ' $userid '";
$result =mysql_query ($sql);
$roww =mysql_fetch_array ($result);
$userrr = $ROWW ["id"];
$sql = "Select Userid,id from Chat_user_list where";
$result =mysql_query ($sql);
if ($row 1=mysql_fetch_array ($result))
$object = $row 1["userid"];
else {
$object = "Everyone";
$k = 1;}
$select = "Select row from User_message order by row DESC";
$result =mysql_query ($select) or Die ("false fgfg");
$rowlist =mysql_fetch_array ($result) or Die ("false fgs");
$max _row= $rowlist ["Row"];
$row = $max _row+1;
$time 1=date ("g:i");
$sql = "INSERT into User_message (userid,object,message,status,action1,color,row,time1) VALUES (' $userid ', ' $object ', ' $message ', ' $private ', ' $action 1 ', ' $color ', ' $row ', ' $time 1 ');
mysql_query ($sql) or Die (Mysql_error ());
if ($k) {$object = "everyone"; $private = 0;}
Else
$object = $row 1["id"];
}
?>


<title>Input Table</title>










Action expression
Renamed
Leave the chat room
Right

2001 @ Copyright Feit Boys Studio




The above describes the my life would suck without chat room php&mysql Three, including my life would suck the content of you, I hope to be interested in PHP tutorial friends helpful.

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