Re: session_name("CCLTrolley")

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux