38: Insert data from a website into a database using MySQLi | PHP tutorial | Learn PHP programming

Channel:
Subscribers:
497,000
Published on ● Video Link: https://www.youtube.com/watch?v=XhLAB1wwzNk



Category:
Tutorial
Duration: 14:08
460,865 views
5,587


Insert data from a website into a database using MySQLi. Today in this PHP tutorial we will learn how to insert data into a database using PHP. To do this we will focus on using PHP MySQLi database functions, and then in the next episode we will get into Prepared Statements.

Regarding people asking why we are not using PDO:

In PHP there exists two methods of programming, which are
"Procedural programming (PP)" and "Object oriented programming (OOP)". In this PHP course we are using PP, and not OOP.

When using PP, it is possible to use MySQLi and Prepared statements. And when using OOP it is possible to use MySQLi, Prepared statements, and PDO. Therefore we cannot use PDO in these lessons here.

HOWEVER, in a few episodes I will show how to get and insert data into a database using prepared statements :)

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful :)

Material for this lesson: https://www.patreon.com/posts/lesson-material-42361704




Other Videos By Dani Krossing


2017-09-149: CSS Text Styling Tutorial | Basics of CSS | Learn HTML and CSS | Learn HTML & CSS Full Course
2017-08-308: Introduction to Classes and IDs in HTML | Learn HTML and CSS | Learn HTML & CSS Full Course
2017-08-147: How To Create HTML and CSS Comments | Learn HTML and CSS | Learn HTML & CSS Full Course
2017-08-116: How Do We Include CSS In Our HTML | Learn HTML and CSS | Learn HTML & CSS Full Course
2017-08-085: We Use Boxes in Websites | Learn HTML and CSS | HTML Tutorial | Learn HTML & CSS Full Course
2017-07-30How to Create Website Layouts Using CSS Grid | Learn HTML and CSS | HTML Tutorial
2017-07-27CSS grids will change how we create website layouts | Learn HTML and CSS | HTML tutorial
2017-07-2443: Hashing and de-hashing data using PHP | PHP tutorial | Learn PHP programming
2017-07-2040: What are Prepared Statements and how to use them | PHP tutorial | Learn PHP programming
2017-07-2039: Protect your database against SQL injection using MySQLi | PHP tutorial | Learn PHP programming
2017-07-2038: Insert data from a website into a database using MySQLi | PHP tutorial | Learn PHP programming
2017-07-1637: How to show database data on a website using MySQLi | PHP tutorial | Learn PHP programming
2017-07-1336: How to connect to a database in PHP | PHP tutorial | Learn PHP programming
2017-07-044: Create Titles and Text Using HTML | Learn HTML and CSS | Learn HTML & CSS Full Course
2017-07-043: Learn About HTML Elements and Attributes | Learn HTML and CSS | Learn HTML & CSS Full Course
2017-06-272: Let's Create Our First HTML Project | Learn HTML and CSS | Learn HTML & CSS Full Course
2017-06-2611: Get and set DOM using jQuery | jQuery Tutorial | Learn jQuery | jQuery Library
2017-06-221: Get Started With HTML & CSS | HTML Tutorial for Beginners | Learn HTML & CSS Full Course
2017-06-21NEW UPLOAD SCHEDULE + LAST UPLOAD EXPLAINED
2017-05-229: Animated scroll to a section on page load - Learn jQuery front-end programming
2017-05-218: How to stop effects in jQuery - Learn jQuery front-end programming



Tags:
How to insert data into a database using MySQLi
insert data into a database using mysqli
how to insert data from a website into a database using mysqli
Insert data from a website into a database using MySQLi
php insert data into a database
mysqli database function
mysqli
php
php tutorial
php database tutorial
mysqli function
insert data into a database
send sql to database using mysqli
how to insert data into a database using php