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

“I particularly liked the heavy hands on sessions that went on with the training. Other than that, really liked Mark's training style. His experience in the field really shines through.”

 

Docker - GTDK1

Feb ‘19

“Instructor's ability to demonstrate new features that are not part of the course help show his mastery as well as prepare us for changes in the technology. Great work.

 

Using Docker & Kubernetes in Production - GTK8SG

Oct ‘18


“This course was an excellent insight into the Cloud Service Management world and equips me with the tools to go back to my company and build upon it.”

 

Cloud Service Manager - GTC13

Jan ‘19

 


“The course was great. The instructor is true Kubernetes Ninja. Loved the hands on approach. Very happy with the course.”

 

Using Docker & Kubernetes in Production - GTK8SG

Oct ‘18

“Excellent instructor. You can tell he really understands the concepts he's presenting and is very passionate about his work. He answered every question we asked and presented the course in an interesting and involving manner.”

 

Spring Boot Development - GTIT40

Nov ‘18

"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

1 - 4 Apr - DUBLIN

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

CompTIA Network+ FastTrack

More dates coming soon

This fast-paced course teaches the essentials of networking and helps to prepare the student for the CompTIA Network+ certification.

Learn More

Applied Data Science with Python

More dates coming soon

Learn about the theoretical and practical aspects of using Python in the realm of Data Science, Business Analytics, and Data Logistics

Learn More

Introduction to Python 3

More dates coming soon

Python is a powerful and popular object-oriented programming/scripting language with many high quality libraries.

Learn More

Newsletter

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

Subscribe to our Newsletter