How to Build a Database Driven Web Site
If you ever want to create a state directory, article
directory, dating site or link directory, you need to know about
creating database driven web sites. This may seem like a
daunting task at first, if you have never done it, however
I was in the same boat as you. It is not as difficult as
you think.
Benefits of building database driven web sites
-Store vast amounts of information about your products or
services.
-Efficient data sorting and retrieval
-Complex queries and statistical analysis performed relatively
easily
-Separate site design from site's content
-Create new pages on the fly without manually creating or
editing new web pages
-Makes it easy for client to post content, update records
without the need to know html or rely on a web developer.
-Advanced search capabilities
-Attract repeat visitors with fresh and constantly updated content.
-Update site information online without the need to upload web
pages.
-Site maintenance greatly reduced.
-Enhance web interactivity
Requirements
MySQL - to retrieve information from a database, you first
need to have a database. That's where MySQL comes in.
MySQL is a relational database management system,
or RDBMS. It's a software package that is very good at
organizing and managing large amounts of information.
MySQL also makes that information readily accessible
by using a server-side scripting language like PHP.
PHP - this is a server-side scripting language. With PHP
installed, your Web server will be able to read a new file
(called a "PHP script") that can retrieve information instantly
from a database and insert it into a web page before sending
it to the browser that requested it. PHP is completely free to
download and use.
Check with your current Web host. Make sure they have
already installed MySQL and PHP on your Web server.
Most web hosting companies already have it installed.
If not find a web host that provides this service.
Steps to building a database driven web site:
You will be building a link directory site using a mySQL
database and the WSN Links Script (a PHP script). Here's an
example of the "Colorado Business Directory Site" that was
built, based on following the 7 steps below:
http://www.hereiscolorado.com
1. Check that your web host has PHP 4.10+ (or PHP 5) and
MySQL 3+ installed on the server.
2. To create the mySQL database on the web server:
-login to the cpanel of your server ie domainname/cpanel
with your user name and password.
-click on 'MySQL Databases' icon.
-enter database name
-click 'add db'
-click on 'go back'
-under 'Users' enter user name and password for database
-click 'add user'
-click on 'go back'
-click on 'add user to database'
You should now get the reply that your database
installation was successful.
3. Download the PHP script files to your desktop at:
WSN links - http://www.isitebuild.com/cgi-bin/a/t.cgi?wsnlinks
4. Extract files from the ZIP folder and save them
to a folder on your computer.
5. Upload all the extracted files to your hosting space
6. Set the correct permissions for your files.
7. To complete the installation and to customize the
script, read the manual at:
http://www.isitebuild.com/cgi-bin/a/t.cgi?wsnlinks
You can continue to customize or edit your site online by
accessing the admin panel within your web site.
Adding, sorting, retrieving, searching data, creating new
pages, links etc can now easily be accomplished.
Congratulations!... you successfully have built yourself a
database driven web site.
Herman Drost is the Certified Internet Webmaster (CIW)
owner and author of http://www.iSiteBuild.com Affordable
Web Site Design and Web Hosting. Subscribe to his
"Marketing Tips" newsletter for more original articles.
subscribe@isitebuild.com. You can read more of his
in-depth articles at: http://www.isitebuild.com/articles
MORE RESOURCES:
 |
 |
 |
RELATED ARTICLES
Developing A Login System With PHP And MySQL
Most interactive websites nowadays would require a user to log in into the website's system in order to provide a customized experience for the user. Once the user has logged in, the website will be able to provide a presentation that is tailored to the user's preferences.
Do You Really Need A Website To Succeed
Rosalind wants to share her inspirational poetry with a wider community. Alas, poor Rosalind lives in a remote town.
Improve Conversion Rates - Effective Content
Your site is fast and getting traffic, but conversion rates are disappointing. You may have problems with the tone of your contentDo You Believe?You must have passion for the product or service you are providing.
7 Killer Ways To Increase Your Online Sales
Every online entrepreneur I talk to is asking the same question, "How do I increase my online sales, NOW?"Online selling is essentially a numbers game. The more visitors to a site, the more sales that site will make.
Web Accessibility Myths
With more and more countries around the world passing laws about blind and disabled access to the Internet (including the Disability Discrimination Act in the UK), web accessibility has been thrown into the spotlight of the online community. This article attempt to put a stop to the misinformation that has been thrown around and tell you the truth behind web accessibility.
Ecommerce for Beginners
Like most average persons, I wanted some extra money to supplement my regular income. I had considered a part time second job at times, but hated that option because it would take me away from the family, make me more tired and probably just pay minimum wage.
Improve Conversion Rates - Load Times
Your site is getting traffic, but conversion rates are horrible. Everything seems to be working, so what's wrong? Your site may simply be to slow.
Top 10 Webmaster Challenges
Webmasters deal with a myriad of complex design challenges every day. This article will discuss the top ten challenges and provide solutions and tips for solving each problem.
Topics to Add When Creating an Alternate and Modern Medicine Web Directory
Alternate medicine finds its own place in the hearts and minds worldwide and has a separate following to back its existence. There are many subcategories that could be added to the modern and alternate medicine website directories.
50 Ways To Use Your Website
A website is the most versatile and cost-effective marketing tool on the market. It is also an investment.
Guide to Internet Business - Website Setup
After planning the design and content of your website, it's time to actually physically set up your website. This is the step where you put all your designs and plans into action, creating a website that will attract visitors and earn income.
10 Tips For Running A Profitable Web Site
1. Address your targeted audience on your business
site.
Creating a Sticky Web Site
When used to describe a web site, the term "sticky" refers to a site that is able to get viewers to stay at the site longer and come back frequently. Sticky web sites are more likely to turn viewers into customers.
The Problem with Paypal On Your Web Page
When I set up my website I felt paypal was a very simple and easy solution when people wished to purchase my products.For 6 months I was getting 150-200 unique visitors a day, and yet only a few sales every week.
17 Tips to Plan a Website
Everyone wants one.Everyone wishes they knew how to make one.
Trinkets, Lockets And Empty Pockets
It never ceases to amaze me how many people set-up a website, without any type of plan or clue about how to promote it, how to write a sales letter, how to write an ad-- nothing!Even more amazing is how many people try to conduct business online without any money.The other day, I received an e-mail from a woman named Nadia inquiring about my E-mail Consultation Service.
Server Side Includes (SSI) with ASP
Server Side Includes (SSI) with ASP
People often have identical sections of code spread throughout many ASP pages, typically code at the top of the page (usually referred to as the header) and the lower part of the page (the footer). Similarly, you may have code that performs a certain set of instructions that you are repeating across multiple pages.
Conceptualize, Build and Publish a Web site
Conceptualize, Build and Publish a Web site - What's required to get startedAll of us knowingly or unknowingly, use a standard decision making process in our day-to-day lives. The very first step of this process is to decide whether TO DO or NOT TO DO.
Website Strategy!
A website lets you put your products in front of a world-wide audience. It can help you generate new revenue, cut costs and build better relationships with both customers and suppliers.
Web Sites - Should I Learn or not?
A common dilemma most small and medium businesses face when coming to their web site is if they should take the time to learn how to build a web site or not? Here's my honest thoughts on this topic.If you read my previous article you would know that a web page is fundamentally written in HTML (let's leave the dynamic stuff out for now).
|