PHP - How to display other values, when a query is limited by 3?
Posted
by Dodi300
on Stack Overflow
See other posts from Stack Overflow
or by Dodi300
Published on 2010-04-17T12:41:26Z
Indexed on
2010/04/17
12:43 UTC
Read the original article
Hit count: 165
Hello. Can anyone tell me how to display the other values, when a query is limited my 3. In this question I asked how to order and limit values, but now I want to show the others in another query. How would I go about doing this?
Here's the code I used before:
$query = "SELECT gmd FROM account ORDER BY gmd DESC LIMIT 3";
$result = mysql_query($query);
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
}
Thanks!
© Stack Overflow or respective owner