PHP AND MySQL– GTLP2

Course Description

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.

^^

Duration

5 days

^^

Target Audience

This course is suitable for those with basic programming skills and HTML experience.

^^

Course Prerequisites

Prior HTML experience is required. Experience in CSS, Basic Programming and XML would be beneficial. The relevant skills are taught in the following courses:

If you have any questions or doubts as to whether you meet the pre-requisites for this course, or indeed are wondering which course best suits you, please consult with us to discuss your suitability for course attendance.

^^

Suggested Follow on Courses

Please contact us for further details.

^^

Course Content

1. PHP BASICS

  1. How PHP Works
  2. The php.ini File
  3. Basic PHP Syntax
  4. PHP Tags
  5. PHP Statements and Whitespace
  6. Comments
  7. PHP Functions
  8. Hello World!
  9. Variables
  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
  20. Single Quotes vs. Double Quotes
  21. Howdy World!

2. FLOW CONTROL

  1. Conditional Processing
  2. If Conditions
  3. Loops
  4. while
  5. do…while
  6. for
  7. break and continue

3. ARRAYS

  1. Enumerated Arrays
  2. Initializing Arrays
  3. Appending to an Array
  4. Reading from Arrays
  5. Looping through Arrays
  6. Associative Arrays
  7. Initializing Associative Arrays
  8. Reading from Associative Arrays
  9. Looping through Associative Arrays
  10. Superglobal Arrays
  11. Two-dimensional Arrays
  12. Reading from Two-dimensional Arrays
  13. Looping through Two-dimensional Arrays
  14. Array Manipulation Functions

4. PHP AND HTML FORMS

  1. HTML Forms
  2. How HTML Forms Work
  3. A Sample HTML Form
  4. Form Variables

 5. STRING MANIPULATION

  1. Formatting Strings
  2. Concatenation
  3. String Manipulation Functions
  4. Examples of String Functions
  5. Magic Quotes
  6. magic_quotes_gpc
  7. magic_quotes_runtime
  8. Recommendation on Magic Quotes

6. REUSING CODE AND WRITING FUNCTIONS

  1. Including Files
  2. require
  3. require_once
  4. auto_prepend_file and auto_append_file
  5. User Functions
  6. Defining and Calling Functions
  7. Default Values
  8. Variable Scope
  9. By Reference vs. By Value
  10. Form Processing
  11. Code Organization

7. SIMPLE SELECTS

  1. Introduction to the Northwind Database
  2. Some Basics
  3. Comments
  4. Whitespace and Semi-colons
  5. Case Sensitivity
  6. SELECTing All Columns in All Rows
  7. SELECTing Specific Columns
  8. Sorting Records
  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
  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
  20. The BETWEEN Operator
  21. The IN Operator
  22. The LIKE Operator
  23. The NOT Operator
  24. Checking Multiple Conditions
  25. AND
  26. OR
  27. Order of Evaluation

8. SUBQUERIES, JOINS AND UNIONS

  1. Subqueries
  2. Joins
  3. Table Aliases
  4. Multi-table Joins
  5. Outer Joins
  6. Unions
  7. UNION ALL
  8. UNION Rules

9. INSERTING, UPDATING AND DELETING RECORDS

  1. INSERT
  2. UPDATE
  3. DELETE

10. MANAGING DATA

  1. Querying a Database
  2. mysqli() Overview
  3. mysqli Methods and Properties
  4. Inserting and Updating Records
  5. mysqli Prepared Statements

11. MDB2

  1. Advantages and Disadvantages of MDB2
  2. Why use a database abstraction layer?
  3. When not to use a database abstraction layer?
  4. Using MDB2

12. AUTHENTICATION WITH PHP AND SQL

  1. A Database-less Login Form

13. REGULAR EXPRESSIONS

  1. Perl-compatible Regular Expression Functions
  2. preg_match()
  3. preg_replace()
  4. Regular Expression Tester
  5. Regular Expression Syntax
  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

 14. SESSION CONTROL AND COOKIES

  1. Sessions
  2. Configuring Sessions
  3. Session Functions
  4. Cookies

 15. SENDING EMAIL WITH PHP

  1. mail()
  2. Shortcomings of mail()
  3. PHPMailer

16. FILE SYSTEM MANAGEMENT

  1. Opening a File
  2. fopen()
  3. Reading from a File
  4. fgets()
  5. Writing to a File
  6. fwrite()
  7. File Locking
  8. flock()
  9. Uploading Files via an HTML Form
  10. Getting File Information
  11. More File Functions
  12. Directory Functions
  13. Getting a Directory Listing

^^

See more Internet Technologies courses