1. Home
  2. Computing & Technology
  3. PHP / MySQL

Simple Address Book

By Angela Bradley, About.com

5 of 6

Removing Data

if ( $mode=="remove")
{
mysql_query ("DELETE FROM address where id=$id");
Print "Entry has been removed <p>";
}

To remove data we simply query the database to remove all the data related to the entries ID.

5 of 6

Explore PHP / MySQL

More from About.com

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. Step By Steps
  5. Address Book - Online Address Book - PHP Tutorial

©2008 About.com, a part of The New York Times Company.

All rights reserved.