PHP Training
This is a complete and free PHP programming course for beginners. Everything you need to get started is set out in section one below.
- What is PHP and Why do I need it?
- What you need to get started
- Installing and testing Easy PHP
- Troubleshooting
- What is a Variable?
- Putting text into variables
- Variables - some practice
- More variable practice
- Joining direct text and variable data
- Adding up in PHP
- Subtraction
- Multiplication
- Division
- Floating point numbers
- If Statements
- Using If Statements
- if ... else
- if ... else if
- Comparison Operators
- NOT Equal To
- Less Than and Greater Than
- What these mean: <=, >=
- The Switch Statement
- Logical Operators
- Boolean Values
- Operator Precedence - a List
- The php Form
- The Method Attribute
- The Post Attribute
- The Action Attribute
- The Submit button
- Getting values from a Text Box
- Checking if the Submit button was clicked
- More on the ACTION attribute
- Keep data the user entered
- PHP and Radio Buttons
- PHP and Checkboxes
- For Loops
- A Times Table Programme
- The Code for the PHP Times Table
- While Loops
- Do ... While loops
- The break statement
- What is an Array?
- Setting up an Array in PHP
- Getting at the values stored in Arrays
- Arrays - Using Text as Keys
- Arrays and For Each
- Sorting Array values
- Random Keys from an Array
- The count function
- Some Array Scripts
- Changing Case
- Trimming White Space
- Shuffle characters
- Finding String Positions with strpos
- Splitting a line of text
- Joining text into a single line
- PHP and Escaping
- String function list
- An Introduction to Functions
- Variable scope and functions
- Functions and Arguments
- A Function to check for blank text boxes
- Getting values out of functions
- By Ref, By Val
- PHP Server Variables
- https Header() Function
- The INCLUDE( ) Function
- Security Issues And Form Elements
- htmlspecialchars( )
- strip_tags( )
- An Introduction to Working With Files In PHP
- Opening a file with readfile( )
- Opening a file with fopen( )
- Options for fopen( )
- Writing to files
- Working with CSV files
- Reading a text file into an array
- File Locations
- The date( ) function
- Using the date( ) function
- The getdate( ) Function
- What you need for these Tutorials
- Creating a database using phpMyAdmin
- Setting up Fields in database tables
- Adding records to a MySQL Table
- Access a MySQL database with PHP code
- Reading records from a MySQL database
- Adding records to a MySQL database
- Magic Quotes
- SQL injection
- Create a Table using SQL
- Updating a record in a table
- Deleting a record in a table
- Using WHERE to limit the data returned
- PHP User Authentication - Introduction
- The login page
- Checking if the user is logged on
- Log Out
- Register a new user
- Other considerations
- Build your own Survey Application - Intro
- The Database for the Survey
- Setting a question – the code
- The Code for the Survey
- Add the Vote to the Database
- Viewing the Results of the Survey
- Introduction to the Forum
- Setting up a Database for a bigger project
- The Forum Sections Table
- The Members Table
- The Post Tables
- The Reply Tables
- Code Strategies and Objectives
- The forumTest.php page
- The pageThread.php page
- 2D Arrays and PHP
- How many replies are there for each post
- Find out which member posted
- Print the table out
- The pageReply.php Code
- The Reply Form
- The results.php page
- Posting a Topic on the Forum
- The resultsP.php page
- Final Project