Ed2Go - Introduction to PHP and MySQL
Learn how to create an interactive Web site, 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 Web site 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.
Course Lessons
- Lesson 01 - What Is PHP?
- Lesson 02 - Basic PHP Programming
- Lesson 03 - More PHP Programming Features
- Lesson 04 - Creating a MySQL Database
- Lesson 05 - Creating a Dynamic Home Page
- Lesson 06 - Displaying Database Content Dynamically
- Lesson 07 - Allowing Visitors to Enter Data
- Lesson 08 - Implementing a Simple Search Engine
- Lesson 09 - Producing Attractive Printer-friendly Pages
- Lesson 10 - Controlling User Access
- Lesson 11 - Backing up and Restoring MySQL Data Files
- Lesson 12 - Implementing Pagination
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. 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 Web sites 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 Web sites. 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 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.
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.
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.
Lesson 2 Projects
(These projects can only be viewed from a local WAMP server or a online server - you will understand why as you follow the lessons above)
Class Project Versions
- Master Recipe
- New Recipe
- Recipe
- Recipe Review
- Rogers Recipes
- Test Recipe Site
- The Recipe Center
- The Recipe Site