?
Solved

PHP and ODBC...

Posted on 2002-06-27
3
Medium Priority
?
330 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 200 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

771 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