Hi again ![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Here is something I need to know :
While looping through mysql records, how do you get the next record at the same time as the current one?
You'll see what I mean by looking at this :
Here is something I need to know :
While looping through mysql records, how do you get the next record at the same time as the current one?
You'll see what I mean by looking at this :
Code:
$sql_query[0] = "
SELECT
my_record
FROM
my_table
ORDER BY
ID
";
$sql_result[0] = mysql_query($sql_query[0], $GLOBALS["db_connect"]);
while ($row[0] = mysql_fetch_array($sql_result[0])) {
$current_record = $row[0]["my_record"];
$next_record = ???
}