$arrayName) { $fldArrName= $arrayName; $arrayName = Array(); $result = $adb->query("select * from ".$tableName." where presence=1 order by sortorderid"); while($row = $adb->fetch_array($result)) { $val = $row[$tableName]; $arrayName[$val] = $val; } $comboFieldArray[$fldArrName] = $arrayName; } return $comboFieldArray; } ?>