Jump to content


Photo

while loop help!


  • This topic is locked This topic is locked
1 reply to this topic

#1 kevdotbadger

kevdotbadger
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 26 October 2006 - 02:49 PM

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?

#2 kevdotbadger

kevdotbadger
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 26 October 2006 - 02:59 PM

can someone remove this please! i jsut LIMITED th mysql query! easy as pie!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users