PHP and ODBC...

Hi,
I am accessing to a MSaccess database with :
$r = odbc_connect( "db","","");
When the database is already opened by access I get an
error message (File already in use bla bla bla).

odbc_connect is supposed to return 0 (false) in case of
connection error....

My PHP version is 4.0.3 so I can't use functions like
odbc_error...

Any idea ?
Thanx
ww

wwalschaertsAsked:
Who is Participating?
 
Hamlet081299Connect With a Mentor Commented:
If you want to handle the error yourself, try turning error reporting off...

error_reporting(0);

0
 
wwalschaertsAuthor Commented:
Good ! This avoid the script to stop with a huge error
message... But in this case, is there a way to know why it
stops. Can I get the error code or the text message in
a variable ?

Thx;
WW
0
 
wwalschaertsAuthor Commented:
Oups... I know the way, forget my last comment.

Thanx,
ww
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.