• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 333
  • Last Modified:

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

0
wwalschaerts
Asked:
wwalschaerts
  • 2
1 Solution
 
Hamlet081299Commented:
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now