Skip to content
Sabaqاردو

PHP for Beginners with MySQL and a Registration Form (Bro Code)

By Bro Code

Course audio
Course audio: English
Level
Beginner
Length
28 lessons · 4 hours

What you'll be able to do

  • Write PHP scripts with variables, conditions, loops and arrays
  • Read and validate form input with $_GET and $_POST
  • Use cookies, sessions and password hashing
  • Store and fetch data in MySQL from PHP

About this course

Bro Code's PHP course packs 28 English lessons into about 4 hours. It starts with variables and data types, arithmetic, useful math functions, then $_GET and $_POST for reading form data. Control flow follows with if statements, logical operators, switch, for and while loops. Arrays and associative arrays lead into isset and empty, radio buttons and checkboxes, functions and string functions. Later lessons cover sanitising and validating input, include, cookies, sessions, the $_SERVER array and password hashing. The last stretch connects PHP to MySQL: creating a table in phpMyAdmin, inserting and querying rows, and finishing with a registration form project. Best for learners who already know basic HTML forms.

Before you start: Basic HTML and forms

Syllabus

28 lessons · 3:59:16 in total

  1. 1PHP tutorial for beginners 🐘13:59
  2. 2PHP variables and data types14:04
  3. 3PHP arithmetic explained6:37
  4. 4PHP $_GET and $_POST explained11:43
  5. 5PHP useful math functions you should know14:07
  6. 6PHP if statements explained10:23
  7. 7PHP logical operators explained10:16
  8. 8PHP switches explained8:44
  9. 9PHP for loops explained6:57
  10. 10PHP while loops explained5:03
  11. 11PHP arrays explained8:03
  12. 12PHP associative arrays explained11:21
  13. 13PHP isset() & empty() are really useful!10:29
  14. 14PHP radio buttons explained9:24
  15. 15PHP checkboxes explained6:39
  16. 16PHP functions explained8:49
  17. 17PHP string functions are awesome8:02
  18. 18PHP how to sanitize/validate input8:03
  19. 19PHP include() function explained6:51
  20. 20PHP $_COOKIE explained5:34
  21. 21PHP $_SESSION explained11:51
  22. 22PHP $_SERVER explained5:42
  23. 23PHP password hashing explained3:40
  24. 24PHP how to connect to MySQL database8:50
  25. 25PHPMyAdmin create a table easy4:11
  26. 26PHP how to insert into MySQL database5:53
  27. 27PHP how to query MySQL database4:38
  28. 28PHP registration form project9:23

Questions

How long is this course?
It has 28 lessons and about 4 hours of video (3:59:16 in total). Your progress is saved lesson by lesson, so you can stop and continue on any device you sign in on, or in the same browser without signing in.
Is this course in English?
The lessons are taught in English. The teacher is Bro Code; the videos play from their official YouTube channel, and Sabaq adds the lesson order, progress tracking, notes and the summary on this page.
Who is this course for, and what should I know first?
It is aimed at beginners: it starts from the basics. Before you start: Basic HTML and forms.
Is it free, and do I need an account?
Yes, it is free to watch and no account is needed. The videos are official uploads by the teacher on YouTube; a free DanixSoft account is optional and only syncs your progress between devices.
What should I take after this course?
A good next step on Sabaq is “CS50's Web Programming with Python and JavaScript (Harvard, 2020)”. The “What to take next” list on this page shows more courses at the same or a higher level in the same topic.

What to take next

Videos by Bro Code, played from their official YouTube channel. Subscribe on YouTube

Official upload by the teacher or institution on their own channel, shown with YouTube's embedded player.

Lessons listed from the official YouTube playlist. Full playlist on YouTube

Lessons last checked Nov 2026. Course summary and lesson structure by Sabaq.

Report a problem or a rights request