Re: Fatal error: Call to undefined function: numrows() in ... - is this a bug or just a typo in my script?

From: Date: Thu, 08 Jan 2004 05:02:31 +0000
Subject: Re: Fatal error: Call to undefined function: numrows() in ... - is this a bug or just a typo in my script?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24884@lists.php.net to get a copy of this message
On Wednesday 07 January 2004 05:36 am, Leonard Nino B. Natera wrote: > Fatal error: Call to undefined function: numrows() in > /usr/share/pear/.../myFile.php on line 80 > > (snip) > $var = $db -> query("SELECT..."); > if($var -> numRows() == 0) { // this is line 80 > // ... some php code > } > > (snip) > is this a bug or have i just left something out? > Did you check to see if your query executed successfully? e.g. $var = $db->query("SELECT..."); if (DB::isError($var)) { die($var->getMessage()); }

« previous php.pear.dev (#24884) next »