PHP & MySQL Syllabus for Beginners
A practical course designed for beginners to learn PHP & MySQL from scratch with real-world examples.
📘 Module 1: Introduction to Web & PHP
- What is a website & how it works
- Client vs Server-side technologies
- Installing XAMPP / WAMP / MAMP
- First PHP file (`hello.php`)
- PHP syntax and tags
- Echo and print
- PHP comments
📘 Module 2: PHP Basics
- Variables and data types
- Constants
- Operators (Arithmetic, Comparison, Logical)
- Conditional statements (`if`, `else`, `switch`)
- Loops (`for`, `while`, `do…while`, `foreach`)
- Arrays: Indexed, Associative, Multidimensional
📘 Module 3: Functions & Strings
- Defining and calling functions
- Function parameters and return values
- Common string functions:
strlen(),substr(),str_replace() - Date & Time in PHP
📘 Module 4: Forms & User Input
- Creating HTML forms
- Handling form data with
$_GETand$_POST - Form validation (required fields, email format)
- File uploads
- Basic sanitization of input
📘 Module 5: MySQL Basics
- Intro to MySQL & phpMyAdmin
- Creating databases & tables
- Basic SQL:
SELECT,INSERT,UPDATE,DELETE
📘 Module 6: PHP & MySQL Integration
- Connecting to MySQL using
mysqli - Insert, fetch, update, and delete data using PHP
- Displaying data in HTML tables
- Using loops to fetch multiple rows
📘 Module 7: Sessions, Cookies & Security
- Working with Sessions and Cookies
- Login/Logout system using Sessions
- Password hashing with
password_hash()&password_verify() - Preventing SQL Injection with Prepared Statements
- Intro to XSS prevention
📘 Module 8: Mini Project – CRUD + Login
- User Registration & Login
- CRUD operations for Posts/Products/Students
- Dashboard with content listing
- Logout functionality
✅ Optional Topics
- Intro to PHP OOP
- File Handling
- Sending Emails with PHP
- Working with JSON
- Deploying PHP website on a live server
