Jump to content

Recommended Posts

hi all,

 

I have a big problem with access database connectivity using php. with dsn i'm able to connect. but not with out DSN. while using the following code ..

 

  $db = 'emailid.mdb';

 

$conn = new COM('ADODB.Connection') or exit('Cannot start ADO.');

 

$conn->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=$db") or exit('Cannot open with Jet.');

 

 

i'm getting the following error.

 

Fatal error: Call to a member function Open() on a non-object in /home/sphoor21/public_html/san/accemail/data1.php on line 18

 

please help me I will be very thankful.

  • 4 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.