note 61859 added to function.odbc-connect
| From: | ladams02atfrostburgdotedu at osu1 dot php dot net | Date: | Tue, 14 Feb 2006 02:19:59 +0000 |
| Subject: | note 61859 added to function.odbc-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-103656@lists.php.net to get a copy of this message | ||
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??
----
Server IP: 216.194.113.175
Probable Submitter: 67.22.218.140
----
Manual Page -- http://www.php.net/manual/en/function.odbc-connect.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61859
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61859&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61859&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61859&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61859&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61859&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61859&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61859&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61859&report=yes
Search -- http://master.php.net/manage/user-notes.php