This is my code:

<?
$myDB = odbc_connect("excel123","",""); if(!myD😎{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??

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?

thanks!!

    This error has nothing to do with your code. It's an installation error, you need to enable the odbc functions and to do that you need to telll PHP when you are configuring it that you want to install them. Read this.

      Write a Reply...