How to reterive specified tows from MySql using PHP?

Discussion in 'PHP' started by kks_krishna, May 8, 2007.

  1. #1
    HI, I want to reterive only the specified row from the MySql DB using PHP. for example given query is : SELECT * FROM articles_insertion. I want reterive only the second row from the results. what method in PHP i have to use for this operation.
     
    kks_krishna, May 8, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    nico_swd, May 8, 2007 IP
  3. kks_krishna

    kks_krishna Active Member

    Messages:
    1,495
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    80
    #3
    kks_krishna, May 8, 2007 IP
  4. decepti0n

    decepti0n Peon

    Messages:
    519
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try adding a LIMIT clause to the query, starting at row 1, and going the length of 1

    'select * from articles_insertion limit 1,1'

    (hopefully)
     
    decepti0n, May 8, 2007 IP