Re: Don't mean to be repetitive - Session Variables
| From: | Stuart Felenstein | Date: | Mon, 11 Oct 2004 18:16:08 +0000 |
| Subject: | Re: Don't mean to be repetitive - Session Variables | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-36739@lists.php.net to get a copy of this message | ||
I apologize, fixed this problem a short while ago. I
need to move the post statement a page ahead. Now all
is working fine.
Thank you ,
Stuart
--- dpgirago@mdanderson.org wrote:
> Have you assigned the values in the
> $_SESSION['l_industry'] array to those
> specific local variables, $l_industry['0'],
> $l_industry['1']... ?
>
> dave
>
>
>
>
>
>
>
>
> Stuart Felenstein <stuart4m@yahoo.com>
>
> 10/11/2004 10:20 AM
>
>
>
>
>
> To:
> php-db@lists.php.net
> cc:
>
>
>
>
>
> Subject:
> Re: [PHP-DB] Don't mean to be repetitive - Session
> Variables
>
>
>
> I may have spoken too soon. Having one minor
> problem
> with getting an array (from a multiple select) to
> print out. Anyone see anything wrong here :
>
> Here is registering session array:
>
> if ( empty( $_SESSION['l_industry'] ) ) {
> $_SESSION['l_industry']=array();
> }
>
> if ( is_array( $_REQUEST['LurkerIndustry'] ) ) {
> $_SESSION['l_industry'] = array_unique(
> array_merge( $_SESSION['l_industry'],
> $_REQUEST['LurkerIndustry'] )
> );
> }
> Here is my call:
>
> echo $l_industry['0']."<br />";
> echo $l_industry['1']."<br />";
> echo $l_industry['2']."<br />";
> echo $l_industry['3']."<br />";
> echo $l_industry['4']."<br />";
> echo $l_industry['5']."<br />";
>
>
> Thank you,
> Stuart
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>