1<?php
2/* Delete all rows from the FRUIT table */
3$del = $dbh->prepare('DELETE FROM fruit');
4$del->execute();
5
6/* Return number of rows that were deleted */
7print("Return number of rows that were deleted:\n");
8$count = $del->rowCount();
9print("Deleted $count rows.\n");
10?>