日期:2014-05-17 浏览次数:20381 次
if(!isset($_SESSION['direction'])
------解决方案--------------------
$_SESSION['direction'] == 'desc')
{
$_SESSION['direction'] = 'asc';
}
else
{
$_SESSION['direction'] = 'desc';
}
$sql = "select * from table where n_pid='".$id."' order by ".$order." ".$_SESSION['direction'];