User Profile

Collapse

Profile Sidebar

Collapse
phphelp87
phphelp87
Last Activity: May 15 '07, 10:12 PM
Joined: May 15 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • phphelp87
    replied to How to read next row in a mySql Query
    in PHP
    Thanks for the quick reply
    Is this the only way to read different rows in a sql query?
    If so i will have an attempt

    Thank You
    See more | Go to post

    Leave a comment:


  • phphelp87
    started a topic How to read next row in a mySql Query
    in PHP

    How to read next row in a mySql Query

    I have this php code which looks like this
    Code:
    $sql = ......
    $result = mysql_query($sql,$connection)
    or die("Couldn't execute SELECT query");
    
    while ($row = mysql_fetch_array($result)) {
    ......
    }
    What i want to do is be able to read the next row in the query. So for example
    Code:
    while ($row = mysql_fetch_array($result)) {
    ......
    if (ID for
    ...
    See more | Go to post
No activity results to display
Show More
Working...