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