DB numRows
| From: | Nunners | Date: | Tue, 25 May 2004 11:18:47 +0000 |
| Subject: | DB numRows | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12724@lists.php.net to get a copy of this message | ||
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