Re: session_name("CCLTrolley")

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

 



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


[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