1.拼接and的时候,只需要传$uid过来的方式;
$where = ' and uid='.$uid;
$sql = "select * from message where pid=1 ".$where." order by intime desc";
1.拼接and的时候,只需要传$uid过来的方式;
$where = ' and uid='.$uid;
$sql = "select * from message where pid=1 ".$where." order by intime desc";
转载于:https://www.cnblogs.com/thinksasa/archive/2013/02/01/2889144.html