Re: Don't mean to be repetitive - Session Variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux