How to retriev 5, 5 rows from mysql using PHP???

Discussion in 'PHP' started by Sangeetha.M, Mar 24, 2009.

  1. #1
    Hi all,

    I would like to retrieve 5, 5 rows from mysql table using PHP...i tried using limit but it got some unexpected results...so anyone one of you help me out in this...:confused:
     
    Sangeetha.M, Mar 24, 2009 IP
  2. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What do you mean by "5, 5"? Five rows and then five more? Five and a half rows? Five rows starting with the sixth?

    If you mean the latter (five rows starting with the 6th) then "limit 5, 5" is indeed the way to do it. What was the unexpected nature of the results you got?
     
    SmallPotatoes, Mar 24, 2009 IP