[PHP-DB] Re: Accessing data from next row? (mysql)

2002-10-14 Thread Adam Royle
Create an array and go through the array as needed. Here is some code from one of my db functions: $DB_RESULT = mysql_query($sql) or die(Error executing query: . mysql_error()); // create an empty array to fill with data $arrData = array(); $rowCount = 0;

[PHP-DB] Re: Accessing data from next row? (mysql)

2002-10-14 Thread Adam Royle
Also, if you're not sure how to get the values from $arrThisRow / $arrNextRow: echo $arrThisRow['columnName']; or $arrData[$i]['columnName'] if you want to access it manually without the other two arrays adam On Monday, October 14, 2002, at 06:05 PM, Adam Royle wrote: Create an array and