>Use "foreach" to traverse the array and display each trolly entry nicely
This might be cleaner? I'm not sure if I'm using while and list right, but somehting like that?
$glquery = mysql_query($sql);
while ($mydata = mysql_fetch_object($glquery)) {
while (list($_SESSION['TrolleyContents'], $value) = $mydata->RNum)
{
echo "$mydata->RNum - $mydata->field1: $mydata->field2.";
}
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

