Hi,
I'm a beginner in this php environment.
Please tell me, what is wrong with this code :
<?php
include("adodb/adodb.inc.php");
$db = 'C:\Program Files\Microsoft Office\Office11\Samples\Northwind.mdb';
$conn = new COM('ADODB.Connection')or die("Unable");
$conn->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=$db");
// get table list
echo "\nTables in current database:\n";
foreach($conn->MetaTables() as $table)
{
echo "* $table\n";
}
$conn->Close();
?>
*and this is the error message :
Tables in current database:
Warning: Invoke() failed: Exception occurred. Source: ADODB.Connection Description: Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. in c:\phpdev\www\public\refnomodul\testnorth.php on line 22
Warning: Invalid argument supplied for foreach() in c:\phpdev\www\public\refnomodul\testnorth.php on line 22
*thank you..
🙂