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";