Sorry about that. Here is all the code. It goes through the loop x number of time, but it does assign a value to variables. ifx_query returns enumerated array, I don’t know if that is the problem, but I have seen an example where it works. Any help or reason why this is not working would be greatly appreciated.
#Here is my Database abstract layer
function db_query($query){
global $dbconnect;
$result=ifx_query($query, $dbconnect);
if (!$result) {
echo "<tt><b>$query</b></tt><br>";
echo "<font color=#ff0000>Query error: <tt><b>", ifx_error(), ": ", ifx_errormsg(), "</b></tt></font><br>";
}
return $result;
}
#Here is my SQL
$select ="SELECT events_fac.fac_cd, facility.fac_sdesc ";
$from ="FROM events_fac, facility ";
$where ="WHERE events_fac.fac_cd=facility.fac_cd ";
$order ="ORDER BY facility.fac_sdesc ASC ";
$built_query=$select.$from.$where.$order;
$facility_data=db_query("$built_query");
#Here is where I am trying to process the return
while(list($fac_cd, $fac_sdesc)=ifx_fetch_row($facility_data)){
print("<option value='$fac_cd'>$fac_sdesc</option>");
}