Ask a Question related to PHP Development, Design and Development.
-
JS #1
Array passing problem...
Hoping someone can point out my more than likely simple mistake here...
function getBranchArray($desig,$branchArray){
$arrayResult = mysql_query("SELECT up FROM categories WHERE designator
LIKE '$desig'");
while ($arrayRow = mysql_fetch_array($arrayResult)){
$up = $arrayRow["up"];
}
if($up != "TOP"){
$branchArray[]=$up;
getBranchArray($up,$branchArray);
}
****A print call to $branchArray here will print the array, complete*******
return $branchArray;
}
************This is what calls it*************
if(isset($which)){
$thisArray = array();
$branchArray = getBranchArray($which,$thisArray);
************A print call here shows that only the last value assigned in
getBranchArray gets passed*******
}
My question is, how do I get the array from getBranchArray to the variable
$branchArray? (I know I am missing something simple, but it's late...)
JS Guest
-
Passing value to Array
If I've got x = "test5" How can I put the value of x to Array list=; I'd try to use ---> list= but is not work. -
passing array in the url
Hello there, I am unable to pass an array thought he url. Even the most simple array as in the code: $test = array(1,2,3,4); echo "<a... -
passing an array
Hello, what is the best way to pass an array to a sub routine, IE. my @fields = qw(one two three); send_array(@fields); -
Passing Array Via CGI.pm
Hello all, I'm a Perl newbie here and have a quick question regarding CGI.pm. I have a CGI script that passes an array to another CGI script as... -
Passing an entire array in PHP
Hi, I saw a previous post about sending arrays but did not quite understand the answers. The problem is that I would like to pass an entire...



Reply With Quote

