|
Posted by Robert Cummings on 10/21/52 11:28
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. |
`------------------------------------------------------------'
Navigation:
[Reply to this message]
|