Master the basics of server-side scripting with PHP. You’ll learn how to create dynamic websites, handle form submissions, connect to databases, and build simple content management functionality in this practical, hands-on course.
🗓️ Course Schedule: PHP & MySQL Essentials
Duration: 2 Days
Time: 10:00 AM – 4:00 PM Daily
Format: Instructor-led • Hands-on Coding • Real-World Projects
🔹 Day 1: PHP Basics & Server-Side Logic
10:00 AM – 11:30 AM
🐘 Introduction to PHP
- What is PHP and how it works with a web server
- Setting up a local PHP environment (e.g., XAMPP or built-in server)
- Writing your first PHP file
- Mixing PHP with HTML
- Echoing text, variables, and basic expressions
11:30 AM – 1:00 PM
🔁 Variables, Logic & Forms
- Declaring variables and understanding types
- Conditional logic:
if
,else
,elseif
,switch
- Loops:
for
,while
,foreach
- Handling form input with
$_GET
and$_POST
- Lab: Create a simple form that responds with dynamic output
1:00 PM – 2:00 PM — Lunch Break
2:00 PM – 4:00 PM
🛠️ Functions & File Includes
- Creating and using functions in PHP
- Understanding scope and return values
- Using
include
andrequire
for reusable code - Lab: Build a simple calculator or user message processor
- Bonus: Basic error handling with
isset()
andempty()
🔹 Day 2: MySQL Integration & Full Stack Flow
10:00 AM – 11:30 AM
🗃️ MySQL & Database Fundamentals
- What is MySQL and how it integrates with PHP
- Connecting to MySQL using
mysqli
and/or PDO - Creating a database and table with phpMyAdmin or SQL
- Writing
SELECT
,INSERT
,UPDATE
, andDELETE
queries - Lab: Create and query a “Users” or “Contacts” table
11:30 AM – 1:00 PM
🔗 PHP & MySQL Together
- Connecting PHP to MySQL with
mysqli_connect()
- Querying the database and displaying results
- Preventing SQL injection with prepared statements
- Lab: Build a form that saves user input to the database
1:00 PM – 2:00 PM — Lunch Break
2:00 PM – 4:00 PM
🛠️ Final Project: Mini CMS or Guestbook App
- Build a small web app that includes:
- A user-facing form
- A database connection
- Page to display submitted entries
- Admin-style update/delete options
- Includes: error handling, simple CSS styling, and page structure
- Wrap-up, review, and Q&A
🧠 What You’ll Learn
- How to build dynamic PHP websites with logic and functions
- How to store and retrieve data from MySQL using PHP
- Secure coding with prepared statements
- Full-stack development using basic frontend and backend skills
- Real-world project experience with form handling and database flow