Beginners PHP - Contents Page

This is a complete and free PHP programming course for beginners. It's assumed that you already have some HTML skills. But you don't need to be a guru, by any means. If you need a refresher on HTML, then click the link for the Web Design course on the left of this page. Everything you need to get started with this PHP course is set out in section one below. Good luck!

PHP Section One - An Introduction to PHP  

1. What is PHP and Why do I need it?

2. What you need to get started

3. Installing and testing Wampserver

PHP Section Two - Getting Started With Variables  

1. What is a Variable?

2. Putting text into variables

3. Variables - some practice

4. More variable practice

5. Joining direct text and variable data

6. Adding up in PHP

7. Subtraction

8. Multiplication

9. Division

10. Floating point numbers

PHP Section Three - Conditional Logic  

1. If Statements

2. Using If Statements

3. if ... else

4. if ... else if

5. Comparison Operators

6. NOT Equal To

7. Less Than and Greater Than

8. What these mean: <=, >=

9. The Switch Statement

10. Logical Operators

11. Boolean Values

12. Operator Precedence - a List

PHP Section Four - Working with HTML Forms  

1. The HTML Form

2. The Method Attribute

3. The Post Attribute

4. The Action Attribute

5. The Submit button

6. Getting values from a Text Box

7. Check for Submit button clicks

8. More on the ACTION attribute

9. Keep data the user entered

10. PHP and Radio Buttons

11. PHP and Checkboxes

PHP Section Five - Programming Loops  

1. For Loops

2. A Times Table Programme

3. The Code for the PHP Times Table

4. While Loops

5. Do ... While loops

6. The break statement

PHP Section Six - Arrays in PHP  

1. What is an Array?

2. Setting up an Array in PHP

3. Getting at the values stored in Arrays

4. Arrays - Using Text as Keys

5. Arrays and For Each

6. Sorting Array values

7. Random Keys from an Array

8. The count function

9. Some Array Scripts

PHP Seven - String Manipulation  

1. Changing Case

2. Trimming White Space

3. Shuffle characters

4. Finding String Positions with strpos

5. Splitting a line of text

6. Joining text into a single line

7. PHP and Escaping

8. String function list

PHP Section Eight - Create your own Functions  

1. An Introduction to Functions

2. Variable scope and functions

3. Functions and Arguments

4. A Function to check for blank text boxes

5. Getting values out of functions

6. By Ref, By Val

7. PHP Server Variables

8. HTTP header() Function

9. The INCLUDE( ) Function

PHP Section Nine - Security Issues  

1. Security Issues And Form Elements

2. htmlspecialchars( )

3. strip_tags( )

PHP Section Ten - Working With Files In PHP  

1. Working With Files In PHP

2. Opening a file with readfile()

3. Opening a file with fopen( )

4. Options for fopen( )

5. Writing to files

6. Working with CSV files

7. Reading a text file into an array

8. File Locations

PHP Section Eleven - Date and Time Functions in PHP  

1. The date() function

2. Using the date() function

3. The getdate() Function

PHP Section Twelve - PHP and MySQL  

1. PHP and MySQL

2. Create a database with phpMyAdmin

3. Setting up fields in tables

4. Add records to a MySQL Table

PHP Section Thirteen - Manipulate a MySQL Database  

1. MySQL databases and PHP code

2. Read records from a MySQL database

3. Adding records to a MySQL database

4. Import Database into phpMyAdmin

5. PHP Prepared Statements

6. Insert, Update, Delete with Prepared Statements

Walkthrough One - PHP User Authentication  

1. PHP User Authentication - Introduction

2. The login database

3. PHP - Encrypting Passwords

4. The Login script

5. Logging in and Logging Out

Walkthrough Two - Build your own PHP Survey/Poll Application  

1. PHP Survey App - the database

2.How the PHP Survey works

3. Setting a question for the Survey

4. The Code for the Survey

5. Viewing the Survey results

6.Adding a new Survey question