最新注册 最新登录
连接里面的变量提交过来:get
获得变量值
sql语句
if(isset($_GET['o']))
$op= $_GET['o'];
else
$op="";
if($op=='r'){
$tmp_sql=" order by user_id desc";
}
elseif($op=='l'){
$tmp_sql.="order by login_time desc";
}else
$tmp_sql="";
$info="<a href=/"user_list.php/" style=/"font_size:13px;/">列出所有</a>| |";
$info.="<a href=/"?o=r/" style=/"font_size:13px;/">最新注册排列</a>| |";
$info.="<a href=/"?o=l/" style=/"font_size:13px;/">最近登录排列</a><br>";
$sql="select user_id,user_name,email,reg_ip,reg_time,login_ip,login_time from users $tmp_sql";