Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个查询:
$SQL = "SELECT id, ciudadh, corporacionh,r1,ultima,anotaciones FROM juan ".$where." AND ORDER BY $sidx $sord LIMIT $start ,$limit";
所以我有一行 id=500 并且我想从该查询中隐藏该行。
我该怎么做?
只需添加另一个 where 子句:
$SQL = "SELECT id ,ciudadh ,corporacionh ,r1 ,ultima ,anotaciones FROM juan ".$where ." AND id!=500 ORDER BY $sidx $sord LIMIT $start ,$limit";