Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to find total rows fetched php pdo

/* 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.
");
 
PREVIOUS NEXT
Tagged: #find #total #rows #fetched #php #pdo
ADD COMMENT
Topic
Name
3+2 =