Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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:
");
$count = $del->rowCount();
print("Deleted $count rows.
");
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #sql #row #count #php #pdo
ADD COMMENT
Topic
Name
2+8 =