-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
[Apologies if this goes to the list twice - I had email issues last night and couldn't tell if it went through]
In DBD::SQLite, what's the proper way to get the number of rows returned by a query? for example:
$query = "SELECT * FROM foo WHERE bar LIKE '%baz%'"; $sth = $dbh->prepare($query); $sth->execute;
$numrows = $sth->rows; # DOES NOT WORK, ALWAYS RETURNS -1
I'm sure there's an obvious way that I'm just overlooking.
Thanks, Wade
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAtJmbo4DwsyRGDscRAjfzAJ4n6LDwKB8ZbQjbKmgr/Kun+rb2owCgwRUf /7vW4keGlyJRx0TfiuXs+28= =JZM9 -----END PGP SIGNATURE-----
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]