sql语句拼接技巧

1.拼接and的时候,只需要传$uid过来的方式;

$where =  ' and uid='.$uid;

$sql = "select * from message where pid=1 ".$where." order by intime desc";

原文地址:https://www.cnblogs.com/thinksasa/p/2889144.html