Why use sub selects here
SELECT * FROM users WHERE $searchfield <= ( SELECT MAX($searchfield) FROM users WHERE $searchfield < ?) ORDER BY $searchfield DESC LIMIT 1
instead of the simpler
pojSELECT * FROM users WHERE $searchfield < ? ORDER BY $searchfield DESC LIMIT 1
In reply to Re^7: CGI Action call
by poj
in thread CGI Action call
by tultalk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |