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.

Login Information

Here is an example of MySQL_Login.php

This is not the real thing for obvious security reasons. The real one is stored in ../MySQL_Login.php


Code Listing : MySQL_Login.php

<?php
  // MySQL_Login.php contains the information needed to 
  // connect to MySQL and link to the database.
  
  $host     = "localhost";          // Host name     - this is real
  $user     = "auser";              // User name     - this is an example
  $password = "letmein";            // Password      - this is an example
  $database = "aardvark";           // Database name - this is an example
?>