odbc_fetch_row is empty

admin

Administrator
Staff member
Hi,

I have problems to get some data out of my database.
The output of odbc_num_fields and odbc_field_name is OK. But I can't get a result of the function odbc_fetch_row and odbc_result if I try the code without fetch_row.

...
while(odbc_fetch_row($result_id))
{
for($i=1;$i<=$num_fields;$i++)
{
$result[$num_rows][$field_name[$i-1]]=odbc_result($result_id,$i);
}
$num_rows++;
}
...

How can I get the records?

Please help and thanks in advance
 
Back
Top