Home  >  Article  >  Backend Development  >  聊天室php&mysql(五)

聊天室php&mysql(五)

WBOY
WBOYOriginal
2016-06-01 14:26:44919browse
第五个页面name="changenick.php"


  
include "../signup/MySQL(和PHP搭配之最佳组合).php";
//echo $userid;
if($action=="ok")
{
$sql="select * from chat_user_list where userid='$nick'";
$result=MySQL(和PHP搭配之最佳组合)_query($sql) or die(MySQL(和PHP搭配之最佳组合)_error());
if(!$result) echo "该呢称已被他人占用 请重新填写";
else  
  {
$sql="update chat_user_list set id='$nick',passwd='$passwd',sex='$sex' where userid='$userid'";
$result=MySQL(和PHP搭配之最佳组合)_query($sql)or die(MySQL(和PHP搭配之最佳组合)_error());

$sql="update chat_user set id='$nick',passwd='$passwd',sex='$sex' where userid='$userid'";
$result=MySQL(和PHP搭配之最佳组合)_query($sql)or die(MySQL(和PHP搭配之最佳组合)_error());
   }
if($result){
      echo "";
      }

}


?>



:::FEIT聊天室:::

Statement:
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