PHP and MySQL Library Tutorial

General
Site Root
Database Home
Conect to MySQL
MySQL_Login.php
nav.php
dump.php

Clean Up resets the
database to contain
a few sensible
records.

Download Tutorial

Database
Create
Drop

Person Table
Create
Drop

Insert
Delete
Update
Search
Date-Search

Row Dump
Better View 
Table View 
Form View

Book Table
Create
Drop

Insert
Delete
Update
Search




Table View 
Form View

Loan Table
Create
Drop

Insert
Delete

Search




Table View

Documentation
Data Requirements
User Interface Design
Entity Relationship Diagrams
Data Flow Diagrams
Data Dictionary
Implementation Notes
Table Designs
Goals, Testing and Appraisal

Note - Create, Drop and Clean Up would be hidden on a real life system.
Contact - nbauers at samphire dot demon dot co dot uk
Copyright © - You may use and reproduce this material in a "not for profit" setting.

Download

Download zipped tutorial (63 KB). How big would a Microsoft .mdb file be?

Setup Guide

  1. Download the tutorial (it is very small)
  2. Unzip the archive. There are no sub-directories.
  3. Copy the files to a folder within your website
  4. Edit MySQL_Login.php. The tutorial looks for this file in the directory one level up from the tutorial files. You can move this file elsewhere but the include statements throughout the tutorial would beed to be adjusted.
    <?php
        $host = "localhost";    // This will be the same
        $user = "aUserName";    // Enter your own MySQL user name
        $password = "aPassword";    // Enter your own MySQL password
        $database = "myDatabase";    // Enter your own MySQL database name
    ?>
  5. Upload the files to the website
  6. If you are lucky, it will work.