Jump to content

[SOLVED] last 3 results, asc without 2 queries?


Michdd

Recommended Posts

Sorting it ASC is what makes your second query necessary.

 

If you wanted to select the last 3 results you could do DESC LIMIT 3

 

If you wante to do DESC LIMIT 3 you could then reverse the results array with array_reverse

http://us2.php.net/manual/en/function.array-reverse.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.