Jump to content

Archived

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

kevdotbadger

while loop help!

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?

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

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.