Jump to content

Finding first four in list


dc_jt

Recommended Posts

Hi

 

I have a table like the following:

 

offer_id    name      ordering

1            test              5

2            test 2          4

3            test 3          3

4            test 6          2

5            test 5          1

 

As I enter more, they go to the top so the next one would have ordering 6.

 

How do I find the first four? ( test, test2, test3 and test 4) I.e The latest ones added?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/51792-finding-first-four-in-list/
Share on other sites

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.