Re: Array in a $_session

From: Date: Tue, 17 Jun 2003 06:48:22 +0000
Subject: Re: Array in a $_session
Groups: php.general 
Request: Send a blank email to php-general+get-151789@lists.php.net to get a copy of this message
Hi Jason, Maybe you can make it a little bit clear for me? >You have not defined $i, so what did you expect to see here? >> session_start(); >> $aantalpers=$_SESSION["aantalpers"]; >> $test1 = $_SESSION['test1'][$i]; > So is it going to be: $test1[$i ]= $_SESSION['test1'][$i]; ??? Regards, Frank >On Tuesday 17 June 2003 13:23, Frank Keessen wrote: > > >> (step 3.php) >> <? >> session_start(); >> $aantalpers=$_SESSION["aantalpers"]; >> $test1 = $_SESSION['test1'][$i]; > >You have not defined $i, so what did you expect to see here? > >> echo $test1; >> for ($i=1; $i<=$_SESSION['test1'][$i]; $i++) >> { >> echo $test1; > >$test1 hasn't changed since you assigned it above, so what did you expect to >see here? > >> } >> ?> > >-- >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 >------------------------------------------ >/* >Research is what I'm doing when I don't know what I'm doing. > -- Wernher von Braun >*/ > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#151789) next »