Answers for "(err, rowCount, fields, results) => { return fields"

PHP
2

sql row count php pdo

<?php
/* Delete all rows from the FRUIT table */
$del = $dbh->prepare('DELETE FROM fruit');
$del->execute();

/* Return number of rows that were deleted */
print("Return number of rows that were deleted:\n");
$count = $del->rowCount();
print("Deleted $count rows.\n");
?>
Posted by: Guest on July-31-2020

Code answers related to "(err, rowCount, fields, results) => { return fields"

Browse Popular Code Answers by Language