The mysqli_begin_transaction() function starts a new transaction. This means that all subsequent
commands (e.g., fruit insertion) are not permanently saved to the database until we confirm them with the
mysqli_commit() function.
Check in your environment: In the simulator below, you will see the final list of fruit in the table. If you are testing the code at home, follow these steps:
orchard table.