Note Submitter: ladams02 at frostburg dot edu
----
What would be the correct syntax if I'm trying to access a
DB that is in the same directory as my PHP script?
The Following:
$connection = odbc_connect("DRIVER={Microsoft Access
Driver (*.mdb)};
DBQ='E:\users\ladams02\courses\cosc345\tts\data.mdb'
", "USER", "PASS");
$sql = "select * from pokerTTS";
$res = odbc_exec($connection, $sql);
Returns:
Warning: odbc_connect() [function.odbc-connect]: SQL error:
[Microsoft][ODBC Microsoft Access Driver]General error
Unable to open registry key 'Temporary (volatile) Jet DSN
for process 0x834 Thread 0x854 DBC 0xc529e4 Jet'., SQL
state S1000 in SQLConnect in
e:\users\ladams02\courses\cosc345\tts\ttsOutput.php on
line 194
... among several other errors. Any ideas??
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|