note 78055 deleted from function.PDOStatement-rowCount by felipe
| From: | felipe@php.net | Date: | Sun, 16 Dec 2007 13:06:28 +0000 |
| Subject: | note 78055 deleted from function.PDOStatement-rowCount by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133710@lists.php.net to get a copy of this message | ||
Note Submitter: brian at killermonk dot com
Reason: 5
----
With a SELECT query rowCount() shouldn't be used anyway. ->fetchColumn() was used in the
example for a SELECT.
A rowCount() should be used after executing a query that changes information in the database, such
as UPDATE, DELETE, etc.