Arpad Ray, who performed a topnotch
technical review.
Jessica, for everything and everything
and everything.
Nicole, for helping with the kids so
I could actually get some work done
(even if I didn??™t want to).
introduction ix
how Ajax works x
what you??™ll learn xi
how this book works xii
required tools xiii
companion web site xvi
the next step xvii
1. access MySQL 1
access MySQL 2
make the database 3
make the tables 5
populate the tables 7
extra bits 9
2. browsing employees 11
what we??™ll do 12
create an HTML page 13
add the HTML form 14
start a PHP page 15
print the employees 16
report on any errors 17
connect to the database 18
create a style sheet 19
use the style sheet 20
test the pages 21
extra bits 22
contents
v
contents
3. browsing using Ajax 25
what we??™ll do 26
make a function 27
check for Ajax support 28
call the function 29
set up the Ajax 30
begin the PHP page 32
print the employees 33
handle the response 35
display the results 36
modify the HTML 37
test the Ajax layer 38
extra bits 39
4. adding records 43
what we??™ll do 44
start the HTML page 45
add the form 46
add the form elements 47
start a PHP page 49
validate the form data 50
update the database 53
report any errors 54
test the non-Ajax version 55
extra bits 57
5.
Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25