Search our courses
Training

In this PHP and MySQL 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

Course Code

GTLP2

Duration

5 Days

Course Fee

POA

Accreditation

N/A

Target Audience

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

Attendee Requirements

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 Contact Us to discuss your suitability for course attendance.

Expand all

Course Description

In this PHP and MySQL 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.

Course Outline

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
Learning Path
Ways to Attend
  • Attend a public course, if there is one available. Please check our Schedule, or Register Your Interest in joining a course in your area.
  • Private onsite Team training also available, please Contact Us to discuss. We can customise this course to suit your business requirements.

Private Team Training is available for this course

We deliver this course either on or off-site in various regions around the world, and can customise your delivery to suit your exact business needs. Talk to us about how we can fine-tune a course to suit your team's current skillset and ultimate learning objectives.

Private Team Training | Contact us

Technical ICT learning & mentoring services

Private Team Training

Our instructors are specialist consultants with vast real world experience and expertise allowing them to design and deliver client-focused courses for your organisation.

Learn more about our Private Team Training

What Our Clients Say

“Given the breadth of the course, I think it was very well structured and organised, I got a lot
out of it.”     

 

JVM Tuning - Bespoke Course

Live Online - May 2020

 

“This was an excellent course and was lots of fun to attend. Instructor started with basic intro to
containerization, then explained Kubernetes and the different components (Container
engine, orchestrator, control plane) which all made sense because of the containerization
intro. The parts of the course layered on top of one another to give a good understanding of
Kubernetes.”

 

Kubernetes for App Developers - GTLFKAD

Live Online - Nov 2020

 

“Really enjoyed the course, it has been an eye opener on opportunities to steer how we approach the cloud from a IT Service Management perspective.”

 

Professional Cloud Service Manager - GTC13

Live Online May 2020

 

''Fantastic course, looking forward to applying this in my work and home life. Excellent, practical approach, very motivational. I think the entire company should attend training.''

 

Being Agile in Business - GTBAB

Sept 2019

“The instructor was great! I didn't expect such a good level of teaching with what some may
consider a dry subject. This was simply great!”  

 

Linux LPIC-1 - GTU8

Live Online - August 2020

 

"Intelligence is the ability to avoid doing work, yet
getting the work done"

Linus Torvalds, creator of Linux and GIT

Technical ICT learning & mentoring services

About GuruTeam

GuruTeam is a high-level ICT Learning, Mentoring and Consultancy services company. We specialise in delivering instructor-led on and off-site training in Blockchain, Linux, Cloud, Big Data, DevOps, Kubernetes, Agile, Software & Web Development technologies. View our Testimonials

Download our eBrochure
Our Accreditation Partners
  •  
  •  
  •  

 

Upcoming Courses

Kubernetes Administration

31 May - 4 June 2021

Live Online

This Kubernetes Administration Certification training course is suitable for anyone who wants to learn the skills necessary to build and administer a Kubernetes cluster

Learn More

LPIC-1 PART 1

22 - 25 June 2021 

Live Online

This Linux certification training course teaches in-depth skills in the basics of Linux Administration.
 

Learn More

DEVOPS FOUNDATION TRAINING

14 - 15 June 2021

Live Online

The purpose of the certification and its associated course is to impart, test and validate knowledge of DevOps basic vocabulary, principles and practices.

Learn More

 INTRO TO PYTHON 3

May 18 – 20 2021

Live Online        

A comprehensive introduction to the core syntax and functions provided by Python, including coverage of its object-oriented and functional programming features.

Learn More

Newsletter

Stay up to date, receive updates on scheduled dates, new courses, offers, and events.

Subscribe to our Newsletter