DB.php, numRows would not count.

From: Date: Fri, 13 Aug 2004 05:54:17 +0000
Subject: DB.php, numRows would not count.
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14092@lists.php.net to get a copy of this message
What could be wrong.. ## code $sql = "select * from refLog"; $q = $dbConn->numRows($sql); ## end of code this one outputs.. DB Error: unknown error in print_r db_error Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => -1 [message] => DB Error: unknown error [userinfo] => [nativecode=0 **] [backtrace] => Array ( [0] => Array ( [file] => /usr/local/lib/php/DB.php [line] => 748 [function] => pear_error [class] => db_error [type] => -> [args] => Array ( [0] => DB Error: unknown error [1] => -1 [2] => 1 [3] => 1024 [4] => [nativecode=0 **] ) ) Whats wrong? how can i count the row, i think what i did was right. Well, it has errors so its probably wrong. But what? I did just what ihave read on the manual. Is it, should i do? insted query() and on my $sql select count(*) from table? instead?. -- Louie Miranda http://www.axishift.com

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