Jump to content

while loop help!


kevdotbadger

Recommended Posts

right i have a mysql query which 'selects all fields from 'features' order by 'id' desc'

that works fine and everything and i have a while loop which keepes looping and gets all data and echos it.

how would i go about getting and disaplying only 3 sets of data as opposided to all the data?

so instead of ID1, ID2, ID3.......ID44, ID45. i jsut print out the last 3, i.e ID43, ID44, ID45.

would i need to do a different loop?
Link to comment
https://forums.phpfreaks.com/topic/25182-while-loop-help/
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.