Make Money Online BUILDING WEBSITES 38: Insert data from a website into a database using MySQLi | PHP tutorial | Learn PHP programming

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

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



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:

Related Post