gotFusion.com....... Where your adventure begins
Showcase your website at Fusion GalleriesNetObjects Fusion 7 Websites Portal

 


 

On This Page

Choose the Pet

Delete Pet

All the Examples on this page can be found in the php sample site

 

In This Tutorial

MySQL--Getting Started

SELECT Statements

Forms

On All Forms

Forms-Add

Forms-Update

Forms-Delete

Combo Boxes

Choosing the Pet to Delete

 In this simple database example, if we want to delete a particular  pet, we must first choose that pet. To Do this, we populate a pulldown box with all the pets currently in the database. For more on populating combination boxes, see the Combo Boxes Page.

  

Choose which pet to delete

Some PHP code required in order to retrieve the list of Pets for the combo box and to delete:

open db, count and only allow to delete if there are pets to delete

The form settings in pdelete.php calls pdelete2.php to actually remove the pet from the table:

call pdelete2.php


Deleting the Pet

The pdelete2.php page is clean and simple. It contains only the code required to delete the pet and links.

pdelete2.php screen shot

The PHP code required to delete the pet:

php code to open db, and deleet pet

next lesson - Combination (Pulldown) Boxes

 

View the PREVIOUS page in this tutorial

Return to the TOP of this page

View the NEXT page in this tutorial


|  Fusion  |  Web Design  |  Hosting  |  Resources  |  gotFusion Store  | 

Problems with this page?  

All content copyright © 2002 gotFusion LLC.  The name gotFusion and the gotFusion ® logo are registered trademarks of gotFusion LLC
Copyright, legal notice & privacy statement