I have this php code which looks like this
What i want to do is be able to read the next row in the query. So for example
Any help would be appreciated
Thank You
Code:
$sql = ......
$result = mysql_query($sql,$connection)
or die("Couldn't execute SELECT query");
while ($row = mysql_fetch_array($result)) {
......
}
Code:
while ($row = mysql_fetch_array($result)) {
......
if (ID for next row/record = ID for this row/record) {
do this
}
}
Thank You
Comment