PHP Tutorials

Here are a few tutorials covering the basics of PHP, as well as a couple of scripts you can download, use, and perhaps learn from. An overview of CSS, and how to use it.

  • Get Started
    An overview of PHP, and how to use it.
  • Extras
    A few things that are helpful to know when using PHP.
  • Variables
    Using variables in PHP scripts.
  • Forms
    An example form script using variables.
  • Cookies
    Store and track user data while they travel through your website.
  • Sessions
    A more secure method than cookies.
  • Comment Forms
    How to write a comment form script.
  • Query Strings
    How to have URLs like index.php?x=about or index.php?about
  • Flat File Databases
    Storing information in text files if you have no MySQL access.
  • PHP and MySQL
    How to connect to a MySQL database with PHP code.
  • Inserting MySQL Data
    How to enter information into a MySQL database with PHP code.
  • Reading MySQL Data
    How to read data from a MySQL database with PHP code.
  • All the Code
    The entire example MySQL guestbook script.
  • User Registration
    Make a user sign-up & log-in script with PHP and MySQL.
  • The Sign-Up Script
    Write form and script to enable users to sign up.
  • The Log-In Script
    Write form and script to enable users to log in once they have signed up.
  • The Log-Out Script
    Write the script that will log users out of the system when they're done.
  • All the Code
    The entire example user registration script.