$strSQL = "SELECT nuber_new, SUM(up_price) AS up_price FROM lottery
where select_new = 'เลข3ตัว' and up_price > 0 GROUP BY nuber_new HAVING SUM(up_price) > $chk1
$strSQL = "SELECT nuber_new, SUM(up_price) AS up_price FROM lottery
where (select_new = 'เลข3ตัว') and (up_price > 0)
GROUP BY nuber_new HAVING SUM(up_price) > $chk1
ORDER BY up_price DESC";