Alex,
Saturday, March 30, 2002, 6:50:17 PM, you wrote:
AB> quick question, I'm setting up a script that does headlines for my site and
AB> I need to pull some information from a table with my review info from it but
AB> I only want to view the 7 latest reviews, how do I make it so I can only
AB> view like 7 highest values for the "num" column?
AB> my query is this:
AB> $r = mysql_query("SELECT * FROM hwureviews LIMIT (MAX(num)-7),7"); Does this
AB> work or am I way off?
Try something like
SELECT * FROM hwureviews ORDER BY date_entered DESC LIMIT 7
AB> -Alex "Big Al" Behrens
--
For technical support contracts, goto https://order.mysql.com/
This email is sponsored by Ensita.net http://www.ensita.net/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Egor Egorov
/ /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED]
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net
<___/ www.mysql.com
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php