my life would suck without you chat room php&mysql three

WBOY
Release: 2016-07-29 08:33:27
Original
916 people have browsed it

第三个页面 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($row1=mysql_fetch_array($result))
$object=$row1["userid"];
else {
    $object="大家";
    $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;
$time1=date("G:i");
$sql="INSERT INTO user_message (userid,object,message,status,action1,color,row,time1) values('$userid','$object','$message','$private','$action1','$color','$row','$time1')";
mysql_query($sql)or die(mysql_error());
if($k){$object="大家"; $private=0;}
else
$object=$row1["id"];
}
?>


input table




  
  

    

.  
      
      
      说  
      
      
      
    


    

.  
      
 Color
       $blue="蓝"; $black="黑";$red="红";$yellow="黄";$zi="紫";$green="绿";$qing="青";
      if($color=="#0000FF")$color1=$blue;
      if($color=="#000000")$color1=$black;
      if($color=="#FF0000")$color1=$red;
      if($color=="#FFFF00")$color1=$yellow;
      if($color=="#800080")$color1=$zi;
      if($color=="#008000")$color1=$green;
      if($color=="#00CC00")$color1=$qing;
      ?>
      
      私聊  
      >
    


  


  
  

动作表情




  
  
2001 @版权所有 FEIT男孩工作室





以上就介绍了my life would suck without you 聊天室php&mysql三,包括了my life would suck without you方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!