0

I have successfully made a connection to my access database on my local computer but when I upload my config.php file which contains the connection string on my web server and when the insert command runs it displays a blank page without making entries to the database.

 $conn = new COM ("ADODB.Connection")
  or die("Cannot start ADO");
  $connStr = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=/onlineadmission.mdb;Jet OLEDB:Database Password=;";
  $conn->open($connStr);

It works well on my local computer but not when uploaded.
Where is the problem?

1
  • Provide valid DB credentials Commented Feb 25, 2014 at 14:36

1 Answer 1

0

Are you sure that the selected driver (Microsoft JET OLEDB 4.0) is installed on the server?

Also put your code into an try-catch block to catch the COM exceptions

Sign up to request clarification or add additional context in comments.

1 Comment

i did it.. no errors. but when i use firephp it says "500 Internal Server Error". i have tested the code on local machine i get the o/p properly

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.