which method is the best

This is a discussion on which method is the best within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi, I have already post this question but i still wonder which is the best method for connecting Access with ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-30-2005
chris
 
Posts: n/a
Default which method is the best

Hi,

I have already post this question but i still wonder which is the best
method for connecting Access with PHP. I know that Access is not the ideal
database, but for some reason i have to do with Access.
Are there advantages of some one?
Thanks

Chris

$connect = odbc_connect ('DRIVER={Microsoft Access Driver
(*.mdb)};DBQ=d:\access\newres.mdb', '', '');

or
$conn = new COM('ADODB.Connection');
$conn->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=d:\access\newres.mdb");

or

include('../adodb/adodb.inc.php');
$dsn = 'Provider=Microsoft.Jet.OLEDB.4.0;'. 'Data
Source=d:\access\newres.mdb;';
$db = NewADOConnection('ado_access');
$db->PConnect($dsn);



Reply With Quote
Reply


Thread Tools
Display Modes

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

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



All times are GMT +1. The time now is 09:01 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0