cvs: peardoc /en/core db.xml

From: Date: Wed, 11 Dec 2002 12:34:04 +0000
Subject: cvs: peardoc /en/core db.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-114@lists.php.net to get a copy of this message
arnaud Wed Dec 11 07:34:04 2002 EDT Modified files: /peardoc/en/core db.xml Log: * example error in getAssoc and getAll method Index: peardoc/en/core/db.xml diff -u peardoc/en/core/db.xml:1.20 peardoc/en/core/db.xml:1.21 --- peardoc/en/core/db.xml:1.20 Wed Jun 12 19:14:56 2002 +++ peardoc/en/core/db.xml Wed Dec 11 07:34:04 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.20 $ --> +<!-- $Revision: 1.21 $ --> <reference id="core.db"> <title>PEAR DB: a unified API for accessing SQL-databases</title> <titleabbrev>DB</titleabbrev> @@ -486,7 +486,7 @@ first column as the key. <programlisting role="php"> <![CDATA[ -$data = getAssoc('SELECT name, surname, phone FROM mytable') +$data = $db->getAssoc('SELECT name, surname, phone FROM mytable') /* Will return: array( @@ -503,7 +503,7 @@ a query <programlisting role="php"> <![CDATA[ -$data = getAll('SELECT id, text, date FROM mytable'); +$data = $db->getAll('SELECT id, text, date FROM mytable'); /* Will return: array(

« previous php.pear.doc (#114) next »