CST463 · S7 CSE
Module 4 — PHP, MySQL and Sessions
Reference material for this module, arranged in teaching order. These are the resources used when this module was taught; the classroom posts for the current cohort go up as we cover it. Every link below is public — follow it directly.
Reference material for this module
Advanced PHP form processing, cookies, sessions, MySQL integration, CRUD operations and dynamic content.
Form processing on the server
- PHP Form Processing
- Submit button vs normal button, div vs span
Remembering the user — cookies and sessions
- PHP Cookie and Session Management
- Post/Redirect/Get — avoiding the double submit
Objects and errors — what PDO is built on
- PHP OOP and exceptions
Talking to MySQL from PHP
- PHP — MySQL
- PDO — error modes and the statement class
- CRUD — the worked student example