note 78055 added to function.PDOStatement-rowCount
| From: | brian at killermonk dot com | Date: | Wed, 26 Sep 2007 05:19:10 +0000 |
| Subject: | note 78055 added to function.PDOStatement-rowCount | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130792@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 209.41.74.194
Probable Submitter: 72.193.228.170
----
Manual Page -- http://www.php.net/manual/en/function.PDOStatement-rowCount.php
Edit -- https://master.php.net/note/edit/78055
Del: integrated -- https://master.php.net/note/delete/78055/integrated
Del: useless -- https://master.php.net/note/delete/78055/useless
Del: bad code -- https://master.php.net/note/delete/78055/bad+code
Del: spam -- https://master.php.net/note/delete/78055/spam
Del: non-english -- https://master.php.net/note/delete/78055/non-english
Del: in docs -- https://master.php.net/note/delete/78055/in+docs
Del: other reasons-- https://master.php.net/note/delete/78055
Reject -- https://master.php.net/note/reject/78055
Search -- https://master.php.net/manage/user-notes.php