Re: session_name("CCLTrolley")
| From: | Robert Cummings | Date: | Mon, 03 Oct 2005 21:05:52 +0000 |
| Subject: | Re: session_name("CCLTrolley") | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223578@lists.php.net to get a copy of this message | ||
On Mon, 2005-10-03 at 16:38, John Taylor-Johnston wrote:
> 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']?
Use "foreach" to traverse the array and display each trolly entry nicely
(probably as you do in the search results).
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'