Re: session_name("CCLTrolley")

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

 



Robert Cummings wrote:

On Mon, 2005-10-03 at 18:08, John Taylor-Johnston wrote:
>Use "foreach" to traverse the array and display each trolly entry nicely

If list() works for you it's fine. I don't really use it so not entirely
sure of it's functionality with respect to looping.
I ended up going with this. Wasn't sure how to use list anyhow. Look good?

$sql = 'SELECT * FROM '.$table.' ORDER BY RNum;';
echo "<!--".$sql."-->";

$news = mysql_query($sql);

   while ($mydata = mysql_fetch_object($news))
     {
foreach ($_SESSION['TrolleyContents'] as $value)
if ($value == $mydata->RNum)
{
}
      }

--
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