Robert Cummings wrote:
>I took a look at your link and it appears to be working fine, though you
>haven't yet wired up the viewcart.php
When I create viewcart.php, what is the best way to extract and display
the contents of $_SESSION['TrolleyContents'] ?
Do I use my $sql value?
or in my while statement where
$mydata->RNum = $_SESSION['TrolleyContents'][??]] echo $mydata->RNum,
$mydata->field1, $mydata->field2
Do I implode or explode $_SESSION['TrolleyContents']?
John
$myconnection = mysql_connect($server,$user,$pass);
mysql_select_db($db,$myconnection);
$sql = select * where RNum ... ?
$news = mysql_query($sql1) or die ...
while ($mydata = mysql_fetch_object($news))
{
while $_SESSION['TrolleyContents'][??]
echo $mydata->RNum -
}
echo implode( ',', $_SESSION['TrolleyContents'] ); gives me a comma
delimited.
http://ca3.php.net/explode
http://ca3.php.net/implode
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php