Re: [PHP] PDO Question. Number of rows returned

2008-07-13 Thread Stephen
Kevin Waterson 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 I

Re: [PHP] PDO Question. Number of rows returned

2008-07-13 Thread Bastien Koert
On Sun, Jul 13, 2008 at 10:30 AM, Stephen [EMAIL PROTECTED] wrote: Kevin Waterson 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

Re: [PHP] PDO Question. Number of rows returned

2008-07-13 Thread Stephen
Bastien Koert wrote: On Sun, Jul 13, 2008 at 10:30 AM, Stephen [EMAIL PROTECTED] wrote: Kevin Waterson 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

Re: [PHP] PDO Question. Number of rows returned

2008-07-13 Thread Bastien Koert
On Sun, Jul 13, 2008 at 11:12 AM, Stephen [EMAIL PROTECTED] wrote: Bastien Koert wrote: On Sun, Jul 13, 2008 at 10:30 AM, Stephen [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Kevin Waterson wrote: I am switching to PDO and can't find an equivalent to mysql_num_rows. Am I missing

[PHP] PDO Question. Number of rows returned

2008-07-12 Thread Stephen
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? Thanks Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PDO Question. Number of rows returned

2008-07-12 Thread Kevin Waterson
This one time, at band camp, Stephen [EMAIL PROTECTED] 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