Posted by John Taylor-Johnston on 10/21/03 11:28
>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."; } }
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming