Re: PDO Question. Number of rows returned
| From: | Kevin Waterson | Date: | Sun, 13 Jul 2008 05:04:48 +0000 |
| Subject: | Re: PDO Question. Number of rows returned | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276716@lists.php.net to get a copy of this message | ||
This one time, at band camp, Stephen <stephen-d@rogers.com> wrote:
> I am switching to PDO and can't find an equivalent to mysql_num_rows.
>
> Am I missing something silly?
>
> Or is there a change of thinking needed for PDO?
>
> How should I determine how many rows a query returned?
PDO returns an array, sizeof/count will get you home
Kevin
http://phpro.org