For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > April 2004 > numRows() returns error object









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author numRows() returns error object
Roger Spears

2004-04-28, 6:52 pm

Hello,

Here's my code:

$res =& $db->query('SELECT * FROM table');
echo $res->numRows();
print "<p>";
echo $res->numCols();

Why does numRows() return an error object?

When I print out the error object, it is actually my SQL statement...

Does anyone know if you can use numRows() on an Oracle database table?

Strange enough, the numCols() works....

Thanks,
Roger
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com