The School for Champions is an educational website that shows you how to achieve your dreams.



Web Design topics

Initial Considerations

Define the Purpose of Your Website

Goals for Web Designers

Become a Champion in Website Design

Overview of Web Design

Reasons for a Website

Concerns About Website Effectiveness

Getting People to Visit Your Web Site

Using Animation on a Web Page

Fundamentals

Basic Steps in Developing a Web Site

Managing Your Images

Reasons for a Slow Web Page

Web Pages Should Be Readable

Web Browser Popularity Statistics

Database-Driven Web Sites

SEO Table Trick for Left-Hand Navigation

List of Search Engines

Usability

Breadcrumbs Show Users Where They Are

Redirect to Another Web Page

Also see

Weekly Feedback Blog

Web Design Survey Results

SQL Development

Flash Development

ColdFusion Development


SfC Home > Web Design >

Explanation of database-driven websites. Also refer to dynamic web page, e-commerce, e-learning, Microsoft SQL Server, MySQL, Access, PHP, ColdFusion, ASP, Active Server Pages, JSP, Perl, Ron Kurtus, School for Champions. Copyright © Restrictions

Database-Driven Websites

by Ron Kurtus (revised 12 May 2008)

A database-driven website allows some of its content to be accessed from a database and displayed dynamically. Updating web pages is then done through updating the database. It also allows users to perform such operations as sorting on the page. Dynamic pages are useful in e-commerce for displaying product catalogs and in e-learning to show class material.

MySQL and Microsoft SQL server are common databases used. PHP, ASP and ColdFusion are common languages used to access the database information and display it on the web pages.

Questions you may have include:

This lesson will answer those questions. There is a mini-quiz near the end of the lesson.

Database-driven website

The typical website consists of a set of individual web pages, connected to each other or to a table of contents page through the use of hyperlinks. Updating data must be done on the individual pages.

When the site consists of a large number of web pages—especially if they change often—updating individual pages can become overwhelming. This can be seen for an e-commerce site, displaying a catalog of products.

The solution to this problem is to put the information in database tables and then access and display that information into select areas of a web page template. This has the advantage in that the owner of the data only needs to update the database and not worry about updating individual web pages.

Applications

Database-driven web sites have numerous applications and possibilities.

e-Commerce

Commercial websites can display information on a large catalog of products, including pictures and documentation by locating the material in a database have accessing it dynamically on the web pages.

A company doing e-commerce can have all their goods for sale in a database on their web server. When a customer accesses the web site and asks for information on a specific type of product, a web page will display the information desired.

This is how many search engines work, but the capabilities in this case are greater, because the information can be formatted in other ways that a simple list.

When new products are introduced or information on them changes, only the database needs to be updated.

e-Learning

When a student accesses an online course, he or she may be able to selected the level or the type of information needed. Since the course material is in a database, only what is requested will be displayed.

Also, updating the education or training material can be done without having to worry about HTML coding issues. The information is simply put in the database.

Database and software

There are a number of database and software solutions to having data-driven web sites.

Database

Typical databases used in dynamic websites are:

Individuals who want to have database-driven material in their websites can use their own copy of the Microsoft Access database. Unfortunately, Access is limited and does not work well if several people want to access the database information at the same time.

Most large companies use the Microsoft SQL Server database.

MySQL is the most popular database, because it almost has the power of Microsoft SQL Server but has the advantage of being free or costing very little. PHP and ColdFusion are typically used with MySQL databases.

Programming languages

Common web programming languages used to access database information are:

PHP is the most popular, especially since it is free. It is often paired with the MySQL database.

Most larger businesses use ASP paired with the MS SQL Server database.

ColdFusion is the easiest to program and maintain, but your Internet host must have a ColdFusion server and usually charges extra for the service. It can be used with Access, MySQL or SQL Server databases.

(See ColdFusion Development for more information.)

JSP and Perl are also used in some dynamic websites.

Summary

A database-driven website allows content to be accessed from a database and displayed dynamically. Pages are then updated through the database. Dynamic pages are useful in e-commerce and in e-learning. MySQL and Microsoft SQL server are common databases used. PHP, ASP and ColdFusion are common languages used to access the database information and display it on the web pages.

Answers to Readers' Questions


Be aware of what is happening around you


Resources

The following resources provide information on this subject:

Websites

Web Page Design Resources

Books

Top-rated books on Website Design


Mini-quiz to check your understanding

1. What is an advantage of a database-driven website?

Pages containing certain information can all be updated by updating the database

You no longer need web pages, because the database is the web page

It increases the amount of work needed to display your pages

2. How can an e-commerce site effectively use dynamic pages?

The site can have numerous flashing animations that are controlled by the database

Dynamic pages prevent frivolous lawsuits

Users can sort list of products by name, cost, or color

3. What is the main reason My SQL and PHP are used in many database-driven sites?

People hate Microsoft and are willing to even use inferior products instead

MySQL and PHP are free or relatively inexpensive, and they work fine

MySQL and PHP generate income for the user from their pop-up ads

If you got all three correct, you are on your way to becoming a Champion in Web Design. If you had problems, you had better look over the material again.


What do you think?

Do you have any questions, comments, or opinions on this subject? If so, send an email with your feedback. We will try to get back to you as soon as possible.


Share link

Feel free to establish a link from your website to pages in this site.

Or use our form to send this link to yourself or a friend.


Students and researchers

The Web address of this page is
www.school-for-champions.com/web/database_driven.htm.

Please include it as a reference in your report, document, or thesis.


Where can you go from here?

School for Champions

Web Design topics

Database-Driven Web Sites


The School for Champions helps you become the type of person who can be called a Champion.