Re: Is this a good idea?



On 17 Jan 2006 11:34:37 -0800, sam.s.kong@xxxxxxxxx wrote:

>> Rather than re-invent the wheel, look at:
>>
>> http://adodb.sourceforge.net/
>> http://phplens.com/adodb/reference.functions.getarray.html
>
>Thanks for the answer.
>My intention is not to use ADO db but make DB-accessing code simple and
>avoid repeated codes (connecting/freeing/disconnecting db).
>Is there a best practice of db-accessing in PHP?

You do realise that other than the name and a deliberate similarity in
function names, ADOdb has nothing to do with Microsoft ADO - it's just a thin
PHP library providing the sort of access methods you're talking about on top of
various PHP native database access functions?

IMHO, ADOdb _is_ the best practice of accessing databases in PHP.

--
Andy Hassall :: andy@xxxxxxxxxxx :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
.



Relevant Pages

  • Re: Is this a good idea?
    ... >>I've been programming ASP for 5 years and am now learning PHP. ... there's no such function in PHP and I can make one. ... My intention is not to use ADO db but make DB-accessing code simple and ... avoid repeated codes. ...
    (comp.lang.php)
  • Re: Using CL from PHP
    ... I haven't done anything with ADO but it seems to me that ADOCmd ... You can create the stored procedure definition ... If you are running PHP on your AS/ ... and the connection fails. ...
    (comp.sys.ibm.as400.misc)
  • Re: PHP <--> MS SQL: Laufzeitprobleme
    ... > einer SELECT Liste aufgeführt werden muß. ... Ansonsten gibt's einen Fehler. ... > Funktionen oder instantiierst Du ADO? ... Ich nutze PEAR::DB was ja letzendlich die PHP MSSQL Server Funktionen ...
    (microsoft.public.de.sqlserver)
  • Re: PHP <--> MS SQL: Laufzeitprobleme
    ... Sorry, aber ich fürchte, da kann ich jetzt nicht weiterhelfen. ... benutzer ich MySQL zusammen mit PHP. ... Das mit ADO und SQL Server und PHP war ... Server Funktionen kenne ich mich nicht aus. ...
    (microsoft.public.de.sqlserver)