note 130359 added to pdostatement.rowcount
| From: | andy.mcraae@gmail.com | Date: | Tue, 10 Jun 2025 17:27:12 +0000 |
| Subject: | note 130359 added to pdostatement.rowcount | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-222213@lists.php.net to get a copy of this message | ||
//don't forget to set a higher memory limit to avoid errors like
//Allowed Memory Size of xxxxxxx Bytes Exhausted
ini_set('memory_limit', '4096M');
$query = "SELECT * FROM my_table";
$statement = $connect->prepare($query);
$statement->execute();
$number_of_rows = $statement->fetchColumn();
echo $number_of_rows;
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 178.38.99.227)
----
Manual Page -- https://php.net/manual/en/pdostatement.rowcount.php
Edit -- https://main.php.net/note/edit/130359
Del: integrated -- https://main.php.net/note/delete/130359/integrated
Del: useless -- https://main.php.net/note/delete/130359/useless
Del: bad code -- https://main.php.net/note/delete/130359/bad+code
Del: spam -- https://main.php.net/note/delete/130359/spam
Del: non-english -- https://main.php.net/note/delete/130359/non-english
Del: in docs -- https://main.php.net/note/delete/130359/in+docs
Del: other reasons-- https://main.php.net/note/delete/130359
Reject -- https://main.php.net/note/reject/130359
Search -- https://main.php.net/manage/user-notes.php