Hey You,
I get the following error when accessing an Access database through ODCB using PHP 4 on Win 2K.
Warning: SQL error: , SQL state 00000 in SQLConnect in f:\apache\odbcausg.php on line 9
Warning: Supplied argument is not a valid ODBC-Link resource in f:\apache\odbcausg.php on line 10
Warning: Supplied argument is not a valid ODBC result resource in f:\apache\odbcausg.php on line 11
Fehler!
My Script is:
<?
$Quelle = odbc_connect("Artikel", "peter", "geheim");
$Ergebnis = odbc_exec($Quelle, "SELECT * FROM Artikel");
if (odbc_fetch_row($Ergebnis, 1)) {
echo odbc_result($Ergebnis, "ArtikelNr");
}
else {
echo "Fehler!";
}
?>
Does anybody know the solution?
Do I have to make any changes at the database?