Professional Documents
Culture Documents
Adv PHP Mysql Toc
Adv PHP Mysql Toc
Table of Contents
Introduction............................................................................................ 6 Class Inheritance..............................................................................51
What this Course is About................................................................. 7 Autoloading Classes.........................................................................52
PHP Review............................................................................................9 Constructors and Destructors...........................................................54
PHP Basics.......................................................................................10 Member and Method Visibility........................................................56
Working with Arrays....................................................................... 15 The static Keyword.......................................................................... 57
Sorting Arrays............................................................................. 18 Abstract Classes............................................................................... 58
Variable Scope in PHP.....................................................................20 Object Interfaces.............................................................................. 59
Arithmetic Operators....................................................................... 22 Overloading......................................................................................60
Comparison Operators..................................................................... 24 Class Members.................................................................................61
The If and While Constructs............................................................ 27 Exercises.......................................................................................... 62
Exercises.......................................................................................... 28 Debugging PHP Code...........................................................................63
Functions..........................................................................................29 PHP Error Handling.........................................................................64
Declaring Functions.................................................................... 31 PHP Debugging Tools..................................................................... 65
Passing Data By Reference......................................................... 33 Creating Conditional Debug Code.............................................. 68
Including Code in Scripts.................................................................35 Suppressing Errors........................................................................... 69
Exercises..................................................................................... 36 Exercises.......................................................................................... 70
Executing OS Commands................................................................ 37 Managing Web Sessions.......................................................................71
Shell Execution Best Practices....................................................40 Using PHP Session Handling...........................................................72
Exercises.......................................................................................... 42 Managing Sessions Across Multiple Servers...................................74
Working with Web Forms............................................................... 43 PHP Cookie Handling......................................................................76
Exercises.......................................................................................... 46 Exercises.......................................................................................... 77
Perl Regular Expressions................................................................. 47 Handling Date & Time in PHP.............................................................79
Object Oriented Programming and PHP 5........................................... 49 Displaying Dates & Times...............................................................80
PHP 5 Objects.................................................................................. 50 Parsing a Date or Time.................................................................... 82
Page 2 of 310
Advanced PHP Programming with MySQL
Page 3 of 310
Advanced PHP Programming with MySQL
Page 4 of 310
Advanced PHP Programming with MySQL
Using UNION to Join SELECT Results........................................282 Appendix C - Updating Tables Using SQL........................................296
Appendix B - SQL Expressions and Functions.................................. 284 The INSERT Statement................................................................. 297
What are Expressions and Functions?........................................... 285 The REPLACE Statement..............................................................299
Character Expressions and Functions............................................ 286 The UPDATE Statement................................................................302
Pattern Matching using LIKE........................................................ 288 The DELETE and TRUNCATE TABLE Statements....................303
Using IF() Statements.................................................................... 290 Appendix D - Joins............................................................................. 304
Using the IN() Function................................................................. 291 SELECT from Multiple Tables......................................................305
Comments in SQL Statements....................................................... 292 The Inner Join........................................................................... 306
Understanding NULL Values........................................................ 294 Outer Joins..................................................................................... 309
Page 5 of 310