In this video, you’ll learn how to connect PHP to a MySQL database using XAMPP on Windows.
We’ll guide you through starting Apache and MySQL, creating a database in phpMyAdmin, and writing PHP code to connect with MySQL using mysqli.
✅ What You’ll Learn:
How to start Apache and MySQL in XAMPP
How to create a MySQL database using phpMyAdmin
How to connect PHP to MySQL database
Test connection using mysqli in PHP
📌 Tools Used:
XAMPP Control Panel
phpMyAdmin
PHP and MySQL
Windows 10/11
📁 XAMPP download: https://www.apachefriends.org
👍 Like the video if it helped, subscribe for more tutorials, and comment if you have questions!