Originariamente inviato da ade_v
Codice PHP:
SELECT qnt FROM tabella WHERE IF(qnt <= '$x'qntqnt>'$x'ORDER BY qnt DESC LIMIT 1 
ehm.. no..

restituisce sempre 1000...