Learning PHP

See this link for full details of course

Lesson 1

Viewing Data and then including a database

Our example is different where we have changed the position field to grade and added the phone no field.

file://elijah/havinga/html/data.php

file://elijah/havinga/html/data2.php

file://elijah/havinga/html/data3.php

file://elijah/havinga/html/data4.php

file://elijah/havinga/html/data5.php

Lesson 2

Enter data

file://elijah/havinga/html/enter.php

file://elijah/havinga/html/enter2.php

file://elijah/havinga/html/enter3.php

Ability to Edit data

file://elijah/havinga/html/edit.php

file://elijah/havinga/html/edit2.php

file://elijah/havinga/html/edit3.php

 

Lesson 3

Includes and Require

file://elijah/havinga/html/include.php

file://elijah/havinga/html/require.php

This file uses a header.inc and footer.inc

file://elijah/havinga/html/hello.php

Validation of fields done from server side (php of course)
Use javascript for client side validation

validate.php

This page measures the field length (6 chars.min) being entered

validate2.php

More complex validation

no numbers allowed requires at least 1 lower case char validate3.php

validate4.php

Check for Email validity

validate5.php

Using Functions  and includes/requires to do the same thing with validity

function.php

Failure to connect message  due to bad password connection

function2.php

With good password

function3.php

Combined page of Data Enter and Edit

My PHP to Database connection page