|
Posted by Rik Wasmus on 11/20/07 16:59
On Tue, 20 Nov 2007 16:31:28 +0100, Kim <kimslot@gmail.com> wrote:
> I keep getting "function not defined" when trying to get a result
> count on my queries ("numRows()") and dont see a bug report on PHP.net
> on this matter. And yes, my queries DO have results.
> Any idea why I get that message ?
>
>
> I followed example 2332 on PHP.net, but no luck. (http://www.php.net/
> manual/en/function.sqlite-num-rows.php)
> Im using PHP 5.1.4 and SQLite Library 3.2.8undefined (PDO).
PDO? ->
http://nl2.php.net/manual/en/function.PDOStatement-rowCount.php
NOT PDO? ->
It should work as long as either you use $object->numRows() and $object is
of the class SQLiteResult (var_dump() the thing to find out), or with
sqlite_num_rows($result) where $result is a resource (once again,
var_dump() the thing to find out).
--
Rik Wasmus
[Back to original message]
|