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.