List Info

Thread: note 61859 added to function.odbc-connect




note 61859 added to function.odbc-connect
user name
2006-02-14 02:19:59
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 -- htt
p://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.p
hp.net/manage/user-notes.php?action=delete+61859&report=
yes&reason=useless
Delete: non-english         -- http://mast
er.php.net/manage/user-notes.php?action=delete+61859&rep
ort=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://ma
ster.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

note 61859 deleted from function.odbc-connect by betz
user name
2006-02-14 02:42:28
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

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )