Re: looping through an array
| From: | Jason Wong | Date: | Sun, 04 Apr 2004 11:51:00 +0000 |
| Subject: | Re: looping through an array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182275@lists.php.net to get a copy of this message | ||
On Sunday 04 April 2004 08:22, Andy B wrote:
[snip]
> i tried using while($_SESSION['guestbook']) but it proves in php's mind to
> be blank or that whole statement gets ignored...
The above doesn't make sense, if you don't have anything inside your
while-loop which alters $_SESSION['guestbook'] then you're going to either
(a) have a zero iteration while-loop, or (b) have an infinite loop.
If $_SESSION['guestbook'] contains an array use a foreach-loop. Or provide
some more details.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
"Don't hate me because I'm beautiful. Hate me because I'm beautiful, smart
and rich."
-- Calvin Keegan
*/