时间:2021-07-01 10:21:17 帮助过:16人阅读
'. "ID"; echo " | \n";'. "用户名"; echo " | \n";'. "真实姓名"; echo " | \n";'. "部门"; echo " | \n";'. "密码"; echo " | \n";'. "电子邮件"; echo " | \n";'. "小组"; echo " | \n";'. "工作电话"; echo " | \n";'. "家庭电话"; echo " | \n";'. "移动电话"; echo " | \n";'. "注册时间"; echo " | \n";'. "结束时间"; echo " | \n"; '. "审核"; echo " | \n";
'; if($i == (mysql_num_fields($user_query)-1)) { echo $row[$i].""; }else{ echo "$row[$i]"; } echo ' | ';
if($i == (mysql_num_fields($user_query)-1))
{
//index.php就相当于你现在的这个.php文件
echo "";
}else{
echo "$row[$i]";
}
同样用这个页面接收:
if(isset($_GET))
{
$status=$_GET['status'];
$userid=$_GET['userid'];
//然后写sql语句
update tablename set status=$status where userid=$userid;
}
if($i == (mysql_num_fields($user_query)-1)) {
if($row[$i] == 1) {
echo '已审核 ';
} else {
echo '未审核 ';