eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 

Your Online Guide » IT Hardwares » Computer Hardware Guide

[D40]Database Driven Website Using
by Grant Pasay, Gra

There's all these different kinds of sandwiches just sitting in the machine waiting to be picked – rows and rows of sandwiches, each in its own little area.

While you're deciding whether to get corned beef or tuna, someone else comes along and selects egg salad. The egg salad sandwich pops out the slot at the bottom of the machine. Finally, you pick tuna. The tuna sandwich pops out the slot at the bottom. Same slot. Different sandwich.

That's what a database-driven website is like.

It has webpages that have slots in them. The slots are empty. But when you come to the site and choose this or that option, the slots get filled with whatever you picked, just like the tuna sandwich. Same webpage. Same slots. Different content.

And just like the individual sandwiches in the sandwich machine, the content is stored in rows with each piece of information in its own little area in what's called a database. A database is just a big sandwich holder, except it can hold other things too, like username/password combinations, license numbers, names, ages, dates, photos, and so on.

And with a database-driven website, a single webpage can have its empty slots filled with this bit of info, or that bit of info, or the next bit of info. Each time the page loads, it looks different – it's the same page with the same slots, just filled up with different stuff from the database each time.

The alternative is to have a specific webpage for each piece of information, but that can be very inefficient. That's like having an egg salad sandwich machine, and a corned beef sandwich machine, and a tuna sandwich machine, and so on. Then when you wanted to get a sandwich, you'd have to go to the right machine, instead of one machine offering you all you want and more. Same with a database-driven website. One page can deliver multiple offerings. Yummy!

And that's why a database-driven website is like a sandwich machine.

Copyright (c) Grant Pasay 2005. All rights reserved.

Grant Pasay has sinced written about articles on various topics from Computers and The Internet, Web Development and Computers and The Internet. . Grant Pasay's top article generates over 27100 views. to your Favourites.
EditorialToday IT Hardwares has 2 sub sections. Such as Computer Guide and Hardware. With over 20,000 authors and writers, we are a well known online resource and editorial services site in United Kingdom, Canada & America . Here, we cover all the major topics from self help guide to A Guide to Business, Guide to Finance, Ideas for Marketing, Legal Guide, Lettre De Motivation, Guide to Insurance, Guide to Health, Guide to Medical, Military Service, Guide to Women, Pet Guide, Politics and Policy , Guide to Technology, The Travel Guide, Information on Cars, Entertainment Guide, Family Guide to, Hobbies and Interests, Quality Home Improvement, Arts & Humanities and many more.
About Editorial Today | Contact Us | Terms of Use | Submit an Article | Our Authors