Skip Evans <[EMAIL PROTECTED]> writes:

> But when it runs I get the following error:
> 
> Call to undefined method PDOStatement::numRows()
> 
> All the documentation I see on SQLite shows this 
> as a valid method.




If I'm reading correctly, $result is of type PDOStatement.  From the
documentation, it doesn't look like numRows is a function on that object...

http://us.php.net/manual/en/class.pdostatement.php

I would try $result->rowCount() and see if that gets you what you need. (The
docs for that function claim it doesn't work for all types of databases... I
don't know how it works with sqlite).

~Ty

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to