You are here: Re: [PHP] session_name("CCLTrolley") « PHP « IT news, forums, messages
Re: [PHP] session_name("CCLTrolley")

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация