Posted by ikciu on 09/24/06 00:02
Zebrawszy mysli rich <rhdyes@gmail.com> wyklepal:
> if (in_array($primsecid, $specprimA)) { ?>
wrong!
in $specprim you have
[0] -> array
[1] -> array
....
if you will try to use in_array then this function will try to find numeric
vale ($primsecid = $primsecA[$i]['primsecid'] / for example 1, 2 ....) in
array $specprimA where each value is array type you have to use function for
search nested array or just
foreach($specprimA as $value){
if (in_array($primsecid, $specprimA)){
your action
break;
}
}
--
~~~~~~~~~~~
Ikciu
gg: 718845
www: www.e-irsa.pl
Navigation:
[Reply to this message]
|