Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Call to undefined function: odbc_connect()

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Call to undefined function: odbc_connect()

Postby mienneke » Mon Apr 28, 2003 7:24 am

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!!
mienneke
New php-forum User
New php-forum User
 
Posts: 8
Joined: Mon Apr 07, 2003 3:55 am

Postby mienneke » Mon Apr 28, 2003 7:28 am

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?
mienneke
New php-forum User
New php-forum User
 
Posts: 8
Joined: Mon Apr 07, 2003 3:55 am


Return to PHP coding => General

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.