Geeks Talk

Prepare for your Next Interview




Connecting to MS Access with PHP

This is a discussion on Connecting to MS Access with PHP within the Database Design forums, part of the Databases category; Hi, I want to connect to an MS Access database without using an ODBC. Can someone help me? I have been researching this for a while now and haven't ...


Go Back   Geeks Talk > Databases > Database Design

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-16-2008
Junior Member
 
Join Date: Jan 2008
Location: Wisconsin
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
AspPage is on a distinguished road
Connecting to MS Access with PHP

Hi, I want to connect to an MS Access database without using an ODBC. Can someone help me? I have been researching this for a while now and haven't found anything that works. Maybe it's just me. Thanks.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-23-2008
Contributing Member
 
Join Date: May 2006
Posts: 34
Thanks: 0
Thanked 9 Times in 6 Posts
Shivanna is on a distinguished road
Re: Connecting to MS Access with PHP

I dont think there is anything that works for connecting ms access without using odbc
while there are options available to connect mysql, oracle and ms sql server dbs

mysql - mysql_connect()
oracle - ocilogon()
ms sql server - mssql_connect()

using format like for example
$db = mysql_connect("localhost", "root", "password");
mysql_select_db("mydb",$db);
$result = mysql_query("select * from employees",$db);

there dont seem to be one available to connect ms access
however there is one product "php lens" which provides "adodb.inc.php"
using this "adodb.inc.php" you can connect to ms access
the format of which is

include("adodb.inc.php");
$db = newadoconnection('access');
$db->connect("localhost", "root", "password", "my_access_db");

regards
shivanna

Last edited by Shivanna : 01-23-2008 at 05:20 AM.
Reply With Quote
  #3 (permalink)  
Old 01-23-2008
Junior Member
 
Join Date: Jan 2008
Location: Wisconsin
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
AspPage is on a distinguished road
Re: Connecting to MS Access with PHP

Thank you for your help do you know anything about the other connection you were talking about? I found one that seems to connect, but then I don't know the syntax or how to write the code to work with it.
Reply With Quote
  #4 (permalink)  
Old 01-24-2008
Contributing Member
 
Join Date: May 2006
Posts: 34
Thanks: 0
Thanked 9 Times in 6 Posts
Shivanna is on a distinguished road
Re: Connecting to MS Access with PHP

I have not used adodb.php.inc exactly
You can find this at [[http:// adodb . sourceforge . net / # download]]
Have a look, You should be able to use it
Reply With Quote
Reply

  Geeks Talk > Databases > Database Design


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
connecting loadrunner with testdirector pvbhanu LoadRunner 1 02-19-2008 04:52 AM
Connecting as SysDBA krishnaindia2007 Oracle 4 11-21-2007 05:30 AM
Database is not connecting susarlasireesha Database General 2 11-13-2007 06:52 AM
Access Boss is a great access management and time control utility that allows you to JobHelper Geeks Lounge 0 07-22-2007 04:40 AM
Data Access Layer For Microsoft Access Lokesh M VB.NET 0 12-02-2006 10:35 AM


All times are GMT -4. The time now is 11:21 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved