License fee: $175/student
PHP-MySQL Manual (PHP501)
In this PHP training course, students will learn to create database-driven websites using PHP and MySQL or the database of their choice. The class also covers SQL basics.

PHP and MySQL Training Overview

In this PHP training course, students will learn to create database-driven websites using PHP and MySQL or the database of their choice. The class also covers SQL basics.

PHP and MySQL Training Course Goals

  • Learn how PHP works
  • Learn the basic syntax of PHP
  • Learn to create dynamic interactive pages with PHP
  • Learn to manipulate files with PHP
  • Learn to work with arrays in PHP
  • Learn to validate forms with PHP
  • Learn to write functions in PHP
  • Learn to manipulate and manage database data with PHP
  • Learn to authenticate users with PHP
  • Learn to manage sessions with PHP
  • Learn to work with the PEAR:DB module
  • Learn advanced form validation with regular expressions
  • Learn to send email with PHP
  • Understand how MySQL works
  • Learn to use SQL to output reports with MySQL
  • Learn to modify MySQL data with SQL

PHP and MySQL Training Course Prerequisites

Experience in the following areas is required.

  • HTML

Experience in the following areas would be beneficial.

  • CSS
  • Basic Programming
  • XML

PHP and MySQL Training Course Outline

  1. PHP Basics
    1. How PHP Works
    2. The php.ini File
    3. Basic PHP Syntax
      1. PHP Tags
      2. PHP Statements and Whitespace
      3. Comments
      4. PHP Functions
      5. Hello World!
    4. PHP Tags
    5. PHP Statements and Whitespace
    6. Comments
    7. PHP Functions
    8. Hello World!
    9. Variables
      1. Variable Types
      2. Variable Names (Identifiers
      3. Type Strength
      4. Hello Variables!
      5. Variable Scope
      6. Superglobals
      7. Constants
      8. Variable-Testing and Manipulation Functions
    10. Variable Types
    11. Variable Names (Identifiers
    12. Type Strength
    13. Hello Variables!
    14. Variable Scope
    15. Superglobals
    16. Constants
    17. Variable-Testing and Manipulation Functions
    18. PHP Operators
    19. Creating Dynamic Pages
      1. Single Quotes vs. Double Quotes
      2. Howdy World!
    20. Single Quotes vs. Double Quotes
    21. Howdy World!
    22. Conclusion
  2. Flow Control
    1. Conditional Processing
      1. If Conditions
    2. If Conditions
    3. Loops
      1. while
      2. do...while
      3. for
      4. break and continue
    4. while
    5. do...while
    6. for
    7. break and continue
    8. Conclusion
  3. Arrays
    1. Enumerated Arrays
      1. Initializing Arrays
      2. Appending to an Array
      3. Reading from Arrays
      4. Looping through Arrays
    2. Initializing Arrays
    3. Appending to an Array
    4. Reading from Arrays
    5. Looping through Arrays
    6. Associative Arrays
      1. Initializing Associative Arrays
      2. Reading from Associative Arrays
      3. Looping through Associative Arrays
      4. Superglobal Arrays
    7. Initializing Associative Arrays
    8. Reading from Associative Arrays
    9. Looping through Associative Arrays
    10. Superglobal Arrays
    11. Two-dimensional Arrays
      1. Reading from Two-dimensional Arrays
      2. Looping through Two-dimensional Arrays
    12. Reading from Two-dimensional Arrays
    13. Looping through Two-dimensional Arrays
    14. Array Manipulation Functions
    15. Conclusion
  4. PHP and HTML Forms
    1. HTML Forms
      1. How HTML Forms Work
      2. A Sample HTML Form
      3. Form Variables
    2. How HTML Forms Work
    3. A Sample HTML Form
    4. Form Variables
    5. Conclusion
  5. String Manipulation
    1. Formatting Strings
      1. Concatenation
      2. String Manipulation Functions
      3. Examples of String Functions
    2. Concatenation
    3. String Manipulation Functions
    4. Examples of String Functions
    5. Magic Quotes
      1. magic_quotes_gpc
      2. magic_quotes_runtime
      3. Recommendation on Magic Quotes
      4. Conclusion
    6. magic_quotes_gpc
    7. magic_quotes_runtime
    8. Recommendation on Magic Quotes
    9. Conclusion
  6. Reusing Code and Writing Functions
    1. Including Files
      1. require
      2. require_once
      3. auto_prepend_file and auto_append_file
    2. require
    3. require_once
    4. auto_prepend_file and auto_append_file
    5. User Functions
      1. Defining and Calling Functions
      2. Default Values
      3. Variable Scope
      4. By Reference vs. By Value
    6. Defining and Calling Functions
    7. Default Values
    8. Variable Scope
    9. By Reference vs. By Value
    10. Form Processing
      1. Code Organization
    11. Code Organization
    12. Conclusion
  7. Simple SELECTs
    1. Introduction to the Northwind Database
    2. Some Basics
      1. Comments
      2. Whitespace and Semi-colons
      3. Case Sensitivity
    3. Comments
    4. Whitespace and Semi-colons
    5. Case Sensitivity
    6. SELECTing All Columns in All Rows
    7. SELECTing Specific Columns
    8. Sorting Records
      1. Sorting By a Single Column
      2. Sorting By Multiple Columns
      3. Sorting By Column Position
      4. Ascending and Descending Sorts
    9. Sorting By a Single Column
    10. Sorting By Multiple Columns
    11. Sorting By Column Position
    12. Ascending and Descending Sorts
    13. The WHERE Clause and Operator Symbols
      1. Checking for Equality
      2. Checking for Inequality
      3. Checking for Greater or Less Than
      4. Checking for NULL
      5. WHERE and ORDER BY
    14. Checking for Equality
    15. Checking for Inequality
    16. Checking for Greater or Less Than
    17. Checking for NULL
    18. WHERE and ORDER BY
    19. The WHERE Clause and Operator Words
      1. The BETWEEN Operator
      2. The IN Operator
      3. The LIKE Operator
      4. The NOT Operator
    20. The BETWEEN Operator
    21. The IN Operator
    22. The LIKE Operator
    23. The NOT Operator
    24. Checking Multiple Conditions
      1. AND
      2. OR
      3. Order of Evaluation
    25. AND
    26. OR
    27. Order of Evaluation
    28. Conclusion
  8. Subqueries, Joins and Unions
    1. Subqueries
    2. Joins
      1. Table Aliases
      2. Multi-table Joins
    3. Table Aliases
    4. Multi-table Joins
    5. Outer Joins
    6. Unions
      1. UNION ALL
      2. UNION Rules
    7. UNION ALL
    8. UNION Rules
    9. Conclusion
  9. Inserting, Updating and Deleting Records
    1. INSERT
    2. UPDATE
    3. DELETE
    4. Conclusion
  10. Managing Data
    1. Querying a Database
      1. mysqli() Overview
      2. mysqli Methods and Properties
      3. Inserting and Updating Records
      4. mysqli Prepared Statements
    2. mysqli() Overview
    3. mysqli Methods and Properties
    4. Inserting and Updating Records
    5. mysqli Prepared Statements
    6. Conclusion
  11. PEAR:DB
    1. Advantages and Disadvantages of PEAR DB
      1. Why use a database abstraction layer?
      2. When not to use a database abstraction layer?
    2. Why use a database abstraction layer?
    3. When not to use a database abstraction layer?
    4. Using PEAR DB
  12. Authentication with PHP and SQL
    1. A Database-less Login Form
    2. Conclusion
  13. Regular Expressions
    1. Perl-compatible Regular Expression Functions
      1. preg_match()
      2. preg_replace()
      3. Regular Expression Tester
    2. preg_match()
    3. preg_replace()
    4. Regular Expression Tester
    5. Regular Expression Syntax
      1. Start and End ( ^ $ )
      2. Number of Occurrences ( ? + * {} )
      3. Common Characters ( . \d \D \w \W \s \S )
      4. Grouping ( [] )
      5. Negation ( ^ )
      6. Subpatterns ( () )
      7. Alternatives ( | )
      8. Escape Character ( \ )
    6. Start and End ( ^ $ )
    7. Number of Occurrences ( ? + * {} )
    8. Common Characters ( . \d \D \w \W \s \S )
    9. Grouping ( [] )
    10. Negation ( ^ )
    11. Subpatterns ( () )
    12. Alternatives ( | )
    13. Escape Character ( \ )
    14. Form Validation Functions with Regular Expressions
    15. Conclusion
  14. Session Control and Cookies
    1. Sessions
      1. Configuring Sessions
      2. Session Functions
    2. Configuring Sessions
    3. Session Functions
    4. Cookies
    5. Conclusion
  15. Sending Email with PHP
    1. mail()
      1. Shortcomings of mail()
    2. Shortcomings of mail()
    3. PHPMailer
    4. Conclusion
  16. File System Management
    1. Opening a File
      1. fopen()
    2. fopen()
    3. Reading from a File
      1. fgets()
    4. fgets()
    5. Writing to a File
      1. fwrite()
    6. fwrite()
    7. File Locking
      1. flock()
    8. flock()
    9. Uploading Files via an HTML Form
    10. Getting File Information
    11. More File Functions
    12. Directory Functions
      1. Getting a Directory Listing
    13. Getting a Directory Listing
    14. Conclusion

Setup

For setup instructions, please visit http://www.webucator.com/Course.cfm?CourseID=PHP501

Quotes from Trainers

I have been using and teaching from Webucator's technical courseware for a while now. From a technical and pedagogical standpoint, Webucator's course materials are well organized and easy to learn from, addressing a variety of learning styles.

- M.B., Toronto, Canada

Webucator's courseware is among the easiest I've ever taught from, has very few errors, and always seems to be well received by the students.

- D.S., Park City, UT

Webucator courseware is always clear and easy to understand, full of up-to-date links to good background information, and highly interactive. It is a pleasure to use.

- K.K., Marlborough, CT

Webucator's courseware is among the most intuitive and hands-on courseware that I've taught. Explanations are clear, hands-on opportunities are frequent, and the Webucator team has been very responsive to any questions I've had. Heartily recommended!

- S.H., Atlanta, GA

Quotes from Students

Wow! So much information to digest in two days. The Training Manual will be a good resource for us in the coming months.

- S.H., Software Engineer, Sybase

The way the course was sectioned out flowed nicely. The classfiles in htdocs flowed perfectly with the manual. The material was relevant and presented in a clear manner.

- Texas Animal Health Commission

The material was very well organized. I was able to catch up on languages I wasn't as much of an expert in (XML, Javascript), and then apply that to the greater goal (Ajax).

- M.S., Interactive Programmer, Q LTD

The materials, excercises, and class were perfect for me.

- R.L., Johnson & Johnson

The learning materials were structured very well and the pace of the class was just right. Good presentation and examples.

- R.H., GIS Specialist, Southern Nevada Water Authority