How to build a database driven website part 2

In part 1 of how to build a database driven website we looked at creating the database and tables and looked at some simple options for inserting data.

In this part we are going to look at connecting to the DB using PHP, creating a simple template as well as discussing a few site architecture issues.

We are going to use a simple PHP connection script to connect to your DB, which will be saved in a separate file and stored outside of root.The connection script will contain the username and password for connecting to our database.

Continued here

Advertisements
%d bloggers like this: