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 <[EMAIL PROTECTED]>

10/11/2004 10:20 AM



 

To:
[EMAIL PROTECTED]
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



Reply via email to