magazine resources subscribe about advertising

New Architect Daily
Commentary and updates on current events and technologies

CMP Media E-Book

Download your copy today.

Research
Search for reports and white papers from industry vendors and analysts.

This Week at NewArchitect.com Subscribe now to our free email newsletter and get notified when the site is updated with new articles







Day of Defeat Online Gaming

 New Architect > Archives > 1998 > 01 > Lab Note  

A Contact Database using MySQL and PHP

By Mike Miller

MySQL, the "free" database for the Web, has a small, highly optimized database engine that implements the entry-level SQL92 specification. Its rich set of support tools lets you create dynamic Web applications such as catalogs, shopping carts, and contact lists. In this article, I will introduce MySQL and show how to develop a simple Web interface to a contact database using MySQL and PHP, a server-side scripting language that can be built into the Apache server, or run as a FastCGI. This combination offers speed, security, and a rich feature set. Best of all, both Apache and PHP are absolutely free.

To demonstrate what you can do with MySQL in a Web context, I've created a Web address book with a twist -- the capability to add time-stamped, single-line comments to address entries and retrieve them later, sorted by date. This turns the address book into a simple contact database, with plenty of room to add features.

The contact database requires two tables: the contact table, which contains the address-related information and a hook for the comments -- in this case, the user ID field; and the comment table.



  Day of Defeat Online Gaming

home | daily | current issue | archives | features | critical decisions | case studies | expert opinion | reviews | access | industry events | newsletter | research | careers | info centers | advertising | subscribe | subscriber service | editorial calendar | press | contacts


Copyright © 2006 CMP Media, LLC Read our privacy policy, your California privacy rights, terms of service.
SDMG Web sites: BYTE.com, C/C++ Users Journal, Developer Pipeline, Dr. Dobb's Journal, DotNetJunkies, MSDN Magazine, Sys Admin,
SD Expo, SD Magazine, SqlJunkies, The Perl Journal, Unixreview, Windows Developer Network, New Architect

web2