Solved

PHP and ODBC...

Posted on 2002-06-27
3
324 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
  • 2
3 Comments
 
LVL 5

Accepted Solution

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

error_reporting(0);

0
 

Author Comment

by:wwalschaerts
Comment Utility
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
Comment Utility
Oups... I know the way, forget my last comment.

Thanx,
ww
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now