Solved

PHP and ODBC...

Posted on 2002-06-27
3
329 Views
Last Modified: 2006-11-17
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
Comment
Question by:wwalschaerts
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
Hamlet081299 earned 50 total points
ID: 7115682
If you want to handle the error yourself, try turning error reporting off...

error_reporting(0);

0
 

Author Comment

by:wwalschaerts
ID: 7115884
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
 

Author Comment

by:wwalschaerts
ID: 7115917
Oups... I know the way, forget my last comment.

Thanx,
ww
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question