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.

 |
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. |
 |
|
 |
|
 |
|

 |
User Registration
Make a user sign-up & log-in script with PHP and MySQL. |
 |
|
 |

 |
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. |
|
 |
|