note 118362 added to pdostatement.rowcount
| From: | (twitter) | Date: | Mon, 23 Nov 2015 08:10:58 +0000 |
| Subject: | note 118362 added to pdostatement.rowcount | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204209@lists.php.net to get a copy of this message | ||
We're having problem with these PDOStatement::fetchColumn() and PDOStatement::rowCount(). I
don't know if we have alike case to others or this is just a problem in our coding. In local,
the rowCount() is not giving the correct number of rows but it is working fine when uploaded to our
hosting site.. while the fetchColumn() is the reverse. The fetchColumn() is working fine in local
but not anymore when uploaded. I don't know what is really going on with that but I think
rowCount() is the best and the others are optional to use.
----
Server IP: 72.52.91.14
Probable Submitter: 112.211.213.19
----
Manual Page -- http://php.net/manual/en/pdostatement.rowcount.php
Edit -- https://master.php.net/note/edit/118362
Del: integrated -- https://master.php.net/note/delete/118362/integrated
Del: useless -- https://master.php.net/note/delete/118362/useless
Del: bad code -- https://master.php.net/note/delete/118362/bad+code
Del: spam -- https://master.php.net/note/delete/118362/spam
Del: non-english -- https://master.php.net/note/delete/118362/non-english
Del: in docs -- https://master.php.net/note/delete/118362/in+docs
Del: other reasons-- https://master.php.net/note/delete/118362
Reject -- https://master.php.net/note/reject/118362
Search -- https://master.php.net/manage/user-notes.php