Introduction to PHP and MySQL

Learn how to create dynamic web pages and interactive websites using the PHP programming language and MySQL database server. This course provides clear, step-by-step instructions and useful templates for creating a complete website capable of dynamically displaying data from a MySQL database.

6 Weeks / 24 Course Hrs
Starting  October 12, 2022
Offered in partnership with your preferred school


Change School
Learning method

Course code: iph

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 clear, step-by-step, instructions demonstrating how to create a complete website capable of dynamically displaying data from a MySQL database.

You'll discover how you can allow your site's visitors to add new information to an online database, search through posted data, and create meaningful printed reports. By the end of this course, you'll have plenty of useful code templates that will help you create your very own dynamic, web-based, content management system.

What you will learn

  • Walk through the development of a complete content management system web application
  • Learn to create a complete website capable of dynamically displaying data from a MySQL database
  • Discover how to allow your site's visitors to add new information to an online database, search through posted data, and create printed reports

How you will benefit

  • Gain useful code templates that will help you create your very own dynamic, web-based, content management system
  • Learn to create dynamic websites that will add value to any type of organization
  • Open the door to opportunities as a dynamic web developer

How the course is taught

  • Instructor-led or self-paced online course
  • 6 Weeks or 3 Months access
  • 24 course hours

These days, people expect the information on professional websites 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. You'll begin by exploring the web application that you'll be building throughout the course—one that will result in a complete content management system that you can adapt for any future websites you create. You'll see how the PHP programming language presents dynamic data, and how the MySQL database server stores it. You'll also dive into the world of WAMP servers, the engine behind dynamic websites. Finally, you'll take a big (but easy) step forward by downloading and installing a WAMP server on your own computer.

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.

A key aspect of dynamic web applications is the ability to process data and make decisions based on the data. You'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.

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

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

In this lesson you'll dig into the nuts and bolts of dynamic web programming. You'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!

Allowing visitors to post information dynamically is a great feature to add to your website. 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 website even more attractive to visitors!

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!

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.

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

Being able to restore data in a database is a crucial function in any dynamic website. 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.

All websites that provide access to lots of data implement some way to page through the data. In this lesson, you'll implement a pagination algorithm that allows your 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 website look more professional.

Richard Blum has been an IT industry professional for over 20 years, working mainly as a network and systems administrator. During this time, he has worked with Microsoft, Novell, Unix, and Linux servers, and has created websites using a variety of different programming languages. Blum is the author of several programming and systems administration books, including Professional Assembly Language, C# Network Programming, PostgreSQL 8 for Windows, Sendmail for Linux, Postfix, and Network Performance Open Source Toolkit.


There are no prerequisites to take this course. Prior HTML coding experience is helpful, but not required.


Hardware Requirements:

  • This course can be taken on either a PC or Mac.
  • Mac users will not be able to use the WAMP5 software, and must provide their own PHP and MySQL development environment.

Software Requirements:

  • PC: Windows 8 or later.
  • Mac: macOS 10.6 or later.
  • Browser: The latest version of Google Chrome or Mozilla Firefox are preferred. Microsoft Edge and Safari are also compatible.
  • During the first lesson in the course, you will be walked through the process of installing WAMP5 software, which provides a full PHP and MySQL development environment. You can download WAMP5 for free here.
  • Adobe Acrobat Reader.
  • Software must be installed and fully operational before the course begins.


  • Email capabilities and access to a personal email account.

Instructional Material Requirements:

The instructional materials required for this course are included in enrollment and will be available online.

Instructor-Led: A new session of each course begins each month. Please refer to the session start dates for scheduling.
Self-Paced: You can start this course at any time your schedule permits.

Instructor-Led: Once a course session starts, two lessons will be released each week for the 6 week duration of your course. You will have access to all previously released lessons until the course ends.
Self-Paced: You have 3 month access to the course. After enrolling, you can learn and complete the course at your own pace, within the allotted access period.

Instructor-Led: The interactive discussion area for each lesson automatically closes two weeks after each lesson is released, so you're encouraged to complete each lesson within two weeks of its release.
Self-Paced: There is no time limit to complete each lesson, other than completing all lessons within the allotted access period.

Instructor-Led: The final exam will be released on the same day as the last lesson. Once the final exam has been released, you will have two weeks plus 10 days (24 days total) to complete the final and finish any remaining lessons in your course. No further extensions can be provided beyond these 10 days.
Self-Paced: Because this course is self-paced, no extensions will be granted after the start of your enrollment.