Re: question in ADODB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thank you very much

--
Sincerely your;

pei_world ( .::IT::. )
"Philippe Saladin" <pheuh@yahoo.fr> wrote in message
20030221091247.50498.qmail@pb1.pair.com">news:20030221091247.50498.qmail@pb1.pair.com...
> > yes, but can you tell me how? I have read the manual, but they didn't
tell
> > how to do so!
> >
>
> Look at testdatabases.inc.php in the adodb release.
> Basically, you would have to write something like :
>
> include("adodb.inc.php");
> $conn = NewADOConnection('ado_access');
> $conn->debug = TRUE; // useful for test
> $access = '\path\to\mydatabase.mdb';
> $myDSN =  "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=$access;USER
> ID=;PASSWORD=;";
> $conn->PConnect($myDSN, '', '', '');
> $recordSet = $conn->Execute('select * from products');
> if (!$recordSet) { echo  $conn->ErrorMsg();}
>
> Regards,
> Philippe
>
>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux