十大精典PHP项目开发全程案例+代码
源代码在线查看: member.php
session_start();
include "conn/conn.php";
include "inc/chec.php";
?>
会 员 数 据 管 理
会员信息查询
ID
等级
用户名
真实姓名
操作
if(!isset($_GET[types]))
$v_sqlstr="select * from tb_account";
else{
switch ($_GET[types]){
case "name":
$other="name like '%".$_GET[key]."%'";
break;
case "realname":
$other="realname like '%".$_GET[key]."%'";
break;
case "grade":
$other="grade='".$_GET[key]."'";
break;
case "counts":
$other="counts break;
case "sex":
$other="sex='".$_GET[key]."'";
break;
}
$v_sqlstr="select * from tb_account where ".$other;
}
$v_rst = $conn->execute($v_sqlstr);
while(!$v_rst->EOF){
?>
if($v_rst->fields[17]=="1")
$fd = "冻结";
else
$fd = "解冻";
?>
$v_rst->movenext();
}
?>