MySQL: Connecting to a Database via Programming (PHP)

Опубликовано: 06 Май 2026
на канале: Programação Web
2,759
136

In this video, you'll learn how to create a connection between your system and a MySQL database using PHP, XAMPP, and PHPMyAdmin, in a practical, step-by-step manner.

My Course 👉 https://curso.programacaoweb.com.br

⏰ In this video:

00:00 - Introduction
02:09 - Creating a new PHP project
04:06 - Creating the cadastro.php file and basic concepts
05:42 - How to view the project in a browser
06:42 - PHP can render HTML
08:44 - Creating a database connection
17:04 - Placing the connection in a separate file
19:34 - Creating a form for insertion
22:43 - Creating a new table for testing in PHPMyAdmin
23:58 - Don't miss the next lessons in this series!

You'll see:

• How to prepare the environment in XAMPP.
• Creating a PHP project from scratch.

• Display messages in the browser with echo.
• Create variables and understand how PHP renders HTML.
• Establish a secure database connection.
• Organize the code by separating the connection configuration.
• Create a functional HTML form with name and age fields.

⭐Become a Member: https://youtube.com/@programacaoweb/join

By becoming a member, you receive access to exclusive member-only courses — jQuery, Bootstrap 5, Complete React, PHP, Node JS.

🎓 Free Courses:

Complete HTML Course 👉    • Curso HTML Completo (4 Horas)  
Complete CSS Course 👉    • Curso CSS Completo (7 Horas)  
Complete JavaScript Course 👉    • Curso Javascript Completo (6 Horas)  
Sass Course for Beginners 👉    • Aprenda Sass em 25 Minutos | Curso Rápido ...  
Git and GitHub Course for Beginners 👉    • Curso de Git e Github Para Iniciantes  
React Course for Beginners 👉    • Curso de React Para Iniciantes  
TypeScript Course for Beginners 👉    • Curso de TypeScript Para Iniciantes  

Best regards!

#PHP #MySQL #WebProgramming