Call to undefined function: odbc_connect()

A

Anonymous

Guest
This is my code:

<?
$myDB = odbc_connect("excel123","",""); if(!myDB){echo "kan niet connecteren";exit;}
$query = "select * from [excel_data$]";
$result=odbc_exec($myDB, $query);

$report=odbc_fetch_row($result);
while($report){
$report=odbc_result($result);
echo $report;
}
?>

it is not much, but i was testing if this would work. and it seems it doesnt .. this is my error:

Fatal error: Call to undefined function: odbc_connect() in /users/1/ine/WWW/testexcel.php on line 6

what seems to be the problem??

thanks!!
 
more:

i made a dsn connection with user dsn and not system dsn because there was a problem doing that ... is it nessecary to do it in system dsn?
 
Back
Top