Jump to content

Grab all but last result


gibigbig

Recommended Posts

I would like to get every result from a table except the very last record.

 

example if a database has this structure:

ID

0

1

2

3

4

5

 

 

 

i only want the records from 0-4.

I want it to select all but the last record, this means that i cant know how many records there are since the records will keep increasing

Link to comment
https://forums.phpfreaks.com/topic/199638-grab-all-but-last-result/
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.