PC Review


Reply
Thread Tools Rate Thread

Connect PHP to Access database error

 
 
adamskiii
Guest
Posts: n/a
 
      13th Apr 2010
I am having problems connecting my PHP to an Access database. Now me code
worked fine at school but when I try it at home I get this error:

Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b>
Microsoft OLE DB Provider for ODBC Drivers<br/><b>Description:</b>
[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path.
Make sure that the path name is spelled correctly and that you are connected
to the server on which the file resides.' in C:\xampp\htdocs\parts.php:15
Stack trace: #0 C:\xampp\htdocs\parts.php(15):
com->Open('DRIVER={Microso...') #1 {main} thrown in C:\xampp\htdocs\parts.php
on line 15


Is there a way to resolve this? I access 2003 installed on my computer. Do I
need to download a driver for access? If so where can I find it?

Thank You
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      14th Apr 2010
Hi,
open control panel and try to make a new odbc connection to your access
database, will it work? then check this page for proper connection string:
http://connectionstrings.com/access

--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com


"adamskiii" <(E-Mail Removed)> wrote in message
news:50990BC0-0F97-4ED1-A89F-(E-Mail Removed)...
> I am having problems connecting my PHP to an Access database. Now me code
> worked fine at school but when I try it at home I get this error:
>
> Fatal error: Uncaught exception 'com_exception' with message
> '<b>Source:</b>
> Microsoft OLE DB Provider for ODBC Drivers<br/><b>Description:</b>
> [Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path.
> Make sure that the path name is spelled correctly and that you are
> connected
> to the server on which the file resides.' in C:\xampp\htdocs\parts.php:15
> Stack trace: #0 C:\xampp\htdocs\parts.php(15):
> com->Open('DRIVER={Microso...') #1 {main} thrown in
> C:\xampp\htdocs\parts.php
> on line 15
>
>
> Is there a way to resolve this? I access 2003 installed on my computer. Do
> I
> need to download a driver for access? If so where can I find it?
>
> Thank You


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error trying to connect to Access Database =?Utf-8?B?RGVl?= Microsoft Access Getting Started 15 8th Oct 2006 06:13 PM
Error trying to connect to Access Database deemurphy_us@yahoo.com Microsoft Access 0 7th Oct 2006 06:43 PM
how to connect Access database =?Utf-8?B?QWJkU29s?= Microsoft ADO .NET 5 5th Apr 2005 02:27 PM
Connect to Access Database Anonymous Microsoft Frontpage 2 3rd Jul 2004 02:47 AM
how to connect to access database Ken Slovak - [MVP - Outlook] Microsoft Outlook VBA Programming 1 24th Dec 2003 08:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:04 AM.