Help Icon


Course Title
Introduction to PHP and MySQL


Learn how to create an interactive website, allowing visitors to post and retrieve information provided by you or your site's visitors. In this online course, you'll see how to create dynamic Web pages using the PHP programming language and the MySQL database server.

During the course, you'll walk through the development of a complete content management system Web application. You'll receive step-by-step instructions to create a complete website capable of dynamically displaying data from a MySQL database. By the end of this course, you'll have plenty of useful code templates that will help you create your own dynamic, Web-based, content management system.  Offered in partnership with ed2go.


  • Understand what PHP is and how it can be used as part of a content management system.
  • Understand PHP programming basics including how to incorporate PHP into your HTML Web pages, and use variables, arrays, and arithmetic operators in PHP code.
  • Discover how MySQL stores application data, and use the phpMyAdmin tool to create a new MySQL database, tables, data fields, and user account.
  • Discover how MySQL stores application data, and use the phpMyAdmin tool to create a new MySQL database, tables, data fields, and user account.
  • Create a dynamic, attractive home page for your application using PHP and Cascading Style Sheets.
  • Use SQL and PHP to retrieve data from your MySQL database and display it in your Web page.
  • Employ SQL, PHP, and HTML forms to enable visitors to enter data into your database.
  • Learn to add a search feature to the Recipe Center application using SQL and PHP.
  • Create stylized printer-friendly Web pages that will print correctly on any computer.
  • Learn to build registration and login pages to track Web page users and grant special privileges.
  • Learn different methods for backing up and restoring the data in your MySQL database.
  • Add data paging to your application to display data on multiple Web pages.


Wednesday - Lesson 01

These days, people expect the information on professional Web sites to change continually and to remain up to date—even up to the minute. In this lesson, you'll start learning how to produce dynamic Web pages that can do just that. We'll begin exploring the Web application we'll be building throughout the course—one that will result in a complete content management system that you can adapt for any future Web sites you create. You'll see how the PHP programming language presents dynamic data, and how the MySQL database server stores it. We'll also dive into the world of WAMP servers, the engine behind dynamic Web sites. Finally, you'll take a big (but easy) step forward by downloading and installing a WAMP server on your own computer.

Friday - Lesson 02

Discover how to incorporate PHP programming into your Web pages to dynamically produce content on your Web pages. You'll see how to store data in variables, and use mathematical operators on data to write programs that can manipulate and display content on your Web pages.

Wednesday - Lesson 03

A key aspect of dynamic Web applications is the ability to process data and make decisions based on the data. We'll examine some PHP statements that allow you to alter the content in your Web pages based on data values in your PHP programs. You'll also learn some techniques for simplifying the programming process by using loops to handle multiple data elements, as well as how to include common code files in all your Web pages.

Friday - Lesson 04

In this lesson we'll use the popular phpMyAdmin Web-based tool to create database objects. We'll first examine how data is organized in a database, then we'll create the actual database and tables necessary for the course project data.

Wednesday - Lesson 05

The core of the Recipe Center application is the Web page template. In this lesson we'll walk through the HTML and CSS code required to display the dynamic content that our PHP code will generate.

Friday - Lesson 06

In this lesson we dig into the nuts and bolts of dynamic Web programming. We’ll use PHP code to retrieve data from MySQL tables and display it on the Recipe Center Web page. Now you can control what appears on the Web page simply by changing data in the database!

Wednesday - Lesson 07

Allowing visitors to post information dynamically is a great feature to add to your Web site. In this lesson you’ll see how to create HTML forms for entering data, then work on how to retrieve the data and insert it into the MySQL table using PHP code. This will make your Web site even more attractive to visitors!

Friday - Lesson 08

This lesson walks through the basics of implementing a simple search engine in your dynamic Web application. Providing the ability for visitors to quickly search and retrieve data stored in the database is a great feature to add to your site, and you'll see how to do that with just a few extra lines of PHP code and some SQL magic!

Wednesday - Lesson 09

Despite the efforts of Web programming, the world hasn't quite gone paperless yet. Because of that, you'll need to provide a printer-friendly version of your Web application so visitors can print information. In this lesson you'll see two different ways to provide a printer-friendly way of displaying the dynamic content from the Recipe Center.

Friday - Lesson 10

Restricting access to data on a Web site is a vital feature for many Web administrators. This lesson shows how to use PHP to control access either to an entire Web site, or to just specific features on the Web site. This lets you control who can update data on your site, helping to block comment spam often posted in blog sites.

Wednesday - Lesson 11

Being able to restore data in a database is a crucial function in any dynamic Web site. This lesson demonstrates different methods of backing up and restoring data in the MySQL environment. You'll learn not only how recover data into an existing database, but also how to migrate data from one MySQL server to another.

Friday - Lesson 12

All Web sites that provide access to lots of data implement some way to page through the data. In this lesson, we implement a paging algorithm that allows our site visitors to page through all of the data records in small chunks. This is one of those features you can add to help make your Web site look more professional.

Method of Instruction



Class participation