You Are Here: Home »Tutorials»PHP & MySQL »   Index

PHP + MySQL Tutorials

PHP Basics

PHP Basics
A general introduction to PHP, what it is, some benefits it has, how to output text to your pages, setting variables and a little more.

PHP Includes
An introduction to the PHP include function and example an of how to use this to create a template base for your website.

PHP General

Easy Navigation
This is a brief tutorial on writing a simple script for easy page navigation using PHP, without use of the code-heavy switch() function normally chosen for this type of script.

If And Else Statements
Understanding the basics of IF and ELSE statements to perform tasks or display content based on certain conditions.

Error Checking In Forms
A simple introduction to checking for valid inputs from a user submitted form, such as checking for blank fields or checking if two feilds match each other.

Opening Files
A brief guide to opening and managing files using PHP's fopen() function.

Single And Double Quotes
The basic use of single and double quoted strings in PHP, which to use when and the general difference between the two.

Introduction To Sessions
A quick introduction to PHP sessions and the use of the most basic session handling functions.

Regular Expressions And Forms
Some very basic examples of using regular expressions to validate user submitted form fields.

Scripts And Code Examples

Click Tracker
This is a fully working script that'll let you create a list of links then record and display the number of clicks each one gets, though it's very basic but each section is explained and perhaps you can turn it into something useful.

Clickable Smilies
Using a combination of PHP and Javascript to add clickable smileys to your news posts, shoutbox or anything similar.

Image Uploader
Create a basic script for allowing users to upload images to your website.

CSS Style Switcher
Let you users select different styles or themes for your website.

Creating A GuestBook (part 1)
Creating a simple PHP + MySQL based guestbook. Part one covers creating the table to store the messages.

Creating A GuestBook (part 2)
Part 2 - Creating the form and adding the information into the database.

Creating A GuestBook (part 3)
Part 3 - Fetching the messages from the database and displaying them on your page.