Error in sample code for DB::fetch() method/function

From: Date: Wed, 20 Feb 2002 14:10:50 +0000
Subject: Error in sample code for DB::fetch() method/function
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-54@lists.php.net to get a copy of this message
Hi, I noted an error in the sample code on the documentation page for DB::fetch(). The result of the DB::query() is assigned to the variable $res, but later on in the code, you do DB_Result::fetchRow() on $result. Minor as it is, I thought you'd like to know about this since it could be confusing for PHP/PEAR beginners. BTW, which is more appropriate when talking about PEAR, functions or methods? Regards, Eddy Young Senior Analyst Programmer Jones Lang LaSalle 23, Hanover Square London, W1A 2BN Tel: +44 (0)20 7493 6040 (x1083) Email: eddy.young@eu.joneslanglasalle.com This e-mail is for the use of the intended recipient(s) only. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not use, disclose or distribute this e-mail without the author's prior permission. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses.

« previous php.pear.webmaster (#54) next »