RE: [PEAR] DB numRows

From: Date: Tue, 25 May 2004 11:26:10 +0000
Subject: RE: [PEAR] DB numRows
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12725@lists.php.net to get a copy of this message
I was being stupid.... there was an error in the sql statement.... sorry.... > -----Original Message----- > From: Nunners [mailto:webmaster@jnsolutions.co.uk] > Sent: 25 May 2004 12:19 > To: 'PEAR list' > Subject: [PEAR] DB numRows > > Hi folks, > > I've got a problem using numRows which I can't fathom out - I think I'm > probably being really stupid, as usual! > > Anyone got any ideas? > > <code> > $layout_res =& $db->query("SELECT * FROM agents_layout where > section='pageHead' AND agent_ID='".$Agent_ID."' LIMIT 1"); > echo($layout_res->numRows()); > </code> > > Basically I want to check whether layout_res was valid/existed. The error > I get is: > > <error> > Call to undefined function: numrows() in ....... > </error> > > I'm using DB v1.6.4... > > Am I stupid? > > Cheers > Nunners

« previous php.pear.general (#12725) next »