Home > php教程 > PHP源码 > php留言板后台管理-查看代码

php留言板后台管理-查看代码

WBOY
Release: 2016-06-08 17:29:58
Original
2192 people have browsed it

php留言板后台管理-查看代码

<script>ec(2);</script>


$lianjie = mysql_connect("localhost","root","xiaolie") or die("连接失败");
mysql_query("set names utf8");
if($lianjie)
{
 mysql_select_db("xiaolie");
 if(!@$_GET["id"])
 {
  $jieguo = "select * from zhuce";
  $fasong = mysql_query($jieguo) or die(mysql_error());
  echo "


    
     
     
     
     
     
     
    ";
  while($nr=mysql_fetch_array($fasong))
  {
   echo "
     
     
     
     
     
     
    ";
  }
  echo "
编号 用户名称 性别 年龄 注册时间 详细信息
".$nr["id"]." ".$nr["name"]." ".$nr["xingbie"]." ".$nr["nianling"]." ".$nr["zc_shijian"]." 查看
";
 }
 else
 {
  $jieguo = "select * from zhuce where id=".$_GET["id"];
  $fasong = mysql_query($jieguo);
  $nr = mysql_fetch_array($fasong);
  echo "编号:".$nr["id"]."
用户名称:".$nr["name"]."
性别:".$nr["xingbie"]."
年龄:".$nr["nianling"]."
注册时间:".$nr["zc_shijian"]."
";
  echo "

继续查询";
 }
}


?>

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