ODBC huh?
I used this for informix,
does the exact same thing that MySQL loop did.
<?
/
executes query and returns a hash table
ie: $reference->rowArr['fieldName'][row(int)]
/
$ex = @odbc_exec($crs,$sql);
$fetch = @odbc_fetch_into($ex,0,$odbcArr[0]);
$i=0;
while ($fetch) {
for ($x=1;$x<=@odbc_num_fields($ex);$x++) {
$rows[trim(@odbc_field_name($ex,$x))][$i] = $odbcArr[$i][$x-1];
} $i++;
$fetch = @odbc_fetch_into($ex,$i,$odbcArr[$i]);
}
}
print_r($rows)
?>
fun stuff 🙂