|
SELECT COUNT(*) FROM eqs_users a LEFT JOIN ws_users_info b ON a.id=b.uid WHERE 1=1 HAVING sell_num >=10
Is this really useful? do not understand……
SELECT COUNT(*) FROM eqs_users as a,ws_users_info as b,ws_cn_sell as c WHERE a.id=b.uid asd b.sell_num >=10
I feel this will fulfill your query requirements
If pagination, use the limit
$page=20;//20 messages per page
$p=$_GET["page"];//Get the transfer parameters
$sql="select * from eqs_users as a,ws_users_info as b,ws_cn_sell as c WHERE a.id=b.uid asd b.sell_num >=10 limit {$page*($p-1)},{$page* $p}";
OK? Okay? Ugh…… |
|