PHP/MySQL Training in Los Angeles

PHP is one of the most widely-used programming languages for the web. Free, open-source PHP binaries are available on Windows, Mac OSX, or Unix.

Combining PHP with a database, such as MySQL or SQL Server enables you to create dynamic web pages, email forms, and data-driven applications such as registration systems and shopping carts.

PHP/MySQL training in Los Angeles will introduce you to the basics of PHP and MySQL. You will start from the ground up, learning PHP syntax, conditional statements, arrays, loops, strings, functions etc. You will work with forms, sanitize user input for security, send emails, work with cookies to collect information, and upload files. You will use phpMyAdmin to build your database and tables and write SQL queries to fetch, insert, update, delete, and search records.

Basic PHP Syntax

This exercise gets you started with the basics of PHP syntax. If you don't have previous programming experience, you will find that PHP is pretty simple to learn.

  • Echo, Strings, and Variables
  • Single Quotes vs. Double Quotes
  • Escaping Characters
  • Heredoc
  • Concatenation
  • Comments

Working with Numbers

In this exercise, we will show you how PHP works with numbers.

  • Arithmetic Operators
  • Assignment Operators
  • Table of Arithmetic Operators
  • Table of Assignment Operators
  • Defining a Site and Testing Server in Dreamweaver

Conditionals

Conditional operators will be one of the most-used elements of your programming life. Simply put, conditional operators are a way to choose when certain things happen. For example, if something is true, then do something. If it is not true, do something else.

  • If/Else
  • Elseif
  • Switch
  • Comparison Operators
  • Logical Operators
  • The Difference Between "==" and "==="

Arrays

One of the most common and powerful types of variables is called an array. There are many ways you can create, output, and manipulate arrays, but here we will just focus on some of the most commonly-used basics.

  • Creating a simple array
  • Using array()
  • Multidimensional Arrays
  • Printing an Entire Array Using print_r()

Loops

Loops are an incredibly important and often-used element of your programming tool belt. Here we will explore the many kinds of loops PHP has to offer.

  • While Loops
  • Do...While
  • For Loops
  • ForEach
  • Break Out of Loop
  • Continue

Working with Strings

Let's explore some basic string functions.

  • Comparing Strings
  • Converting to Upper and Lower Case
  • Searching Through Strings
  • Case-Sensitive and Case-Insensitive

Functions & Objects

In this exercise, you will learn the basics of functions and how to use arguments within them. We will go over how to create objects with properties and methods. We will explore the differences between public and private properties, and how to extend classes' functionality.

  • Functions
  • Arguments
  • Objects and Properties
  • Objects and Methods
  • Private Properties
  • Creating Classes that Extend Classes

Form Basics and Security

In this exercise, we will cover the basics of PHP form submission. You will learn the difference between POST and GET, how to deal with radio buttons, checkboxes, and select fields, and how to secure your pages from attacks.

  • Setting up a basic form
  • Post vs. Get
  • Radios, Checkboxes, and Select Fields
  • Magic Quotes
  • Securing the page

Sending Email

One of the great things about PHP is how easy it is to send an email. In this exercise we will show you how to set up MAMP Pro or XAMPP to send test emails.

  • Setting Up MAMP Pro
  • Setting Up XAMPP and Mercury Mail
  • Sending a Test Email

Simple Form Validation and Email

This exercise will focus on a very simple form validation script that checks for simple errors, sanitizes input, and sends an email.

  • Sanitizing Input
  • Error Checking
  • Displaying Errors
  • Sending Email
  • Adding a Thank You Page
  • Including Files

Cookies

Every website should use analytics to track where visitors come from and find information such as their landing page, how many times they have visited, where they came from, etc. and store it in a cookie.

  • Adding Cookies
  • Tracking the Number of Visits
  • Sending an Email with the Cookie Info

Sessions

In this exercise we will create a simple login/logout application where we make a few pages password-protected.

  • Starting a Session
  • Using Session Variables
  • Log In/Log Out
  • Destroying Session Variables

File Uploads

In this exercise we will show you some very basic security measures as well as how to upload files. If you add this type of capability on your live site, it should be in a password-protected area or authenticated in some way.

  • Making a File Upload Form
  • The $_FILES Array
  • Uploading Files
  • Basic Security

Creating a Database/MySQL/SELECT

In this exercise, you’ll learn how to create a database in the phpMyAdmin control panel, as well as how to connect to a database and display some data.

  • Creating a New Database
  • Connecting to the Database
  • SQL Basics
  • The SELECT Statement
  • Display the Number of Rows Returned
  • Making a Reusable Connection Script
  • MySQL vs. MySQLi vs. PDO

Making a Reusable Connection Script

Because we will be connecting to the same database from several webpages, it makes sense to save the connection script into another page. That way, we can just include it at the top of any page that needs to connect to the database.

  • Error Checking
  • Making an Include
  • Sorting Results

Prepared Statements

In this exercise we are going to show how to select a certain row of data in a database. We will select all the records in the database that are equal to a certain email.

  • Selecting and Filtering Results
  • Preventing SQL Injection Attacks with Prepared Statements

SQL: Update, Delete, and Search

These exercises will show you the SQL syntax for updating, deleting, and searching records from a database.

  • The UPDATE Statement
  • Update Form
  • Display Data in the Update Form
  • Display Checkboxes
  • Hidden Fields
  • The DELETE Statement
  • Deleting Rows from a Database
  • Passing ID Variables in a URL
  • Wildcard Searches
  • Searching with a Form

PHP/MySQL Training Reviews:


Rated 4.6/5 based on 178 student reviews.

"Well organized for a quick education in PHP."
- , State of Alaska

"This is the way I like to learn. Topics were introduced and explained using examples and then we were able to use that information to write scripts actual scripts to further illustrate the topics. The trainer also was able to answer my specific questions about topics that would relate to my job and created special projects that would explain them."
- , PHP/MySQL Fundamentals Training

* Note: This class description is for PHP/MySQL training in Los Angeles. We also offer PHP/MySQL training in San Francisco, San Jose, and Sacramento.