How to insert data from a json file in the database | PHP, JSON, MYSQL Tutorial

preview_player
Показать описание
For this tutorial we have some products stored in a JSON file.

We are going to see how to fetch the raw data from the JSON
file, convert them in a php array, and insert them in a database.

We are also take a quick look of prepared statements so our database
will stay safe from the risk of an SQL injection.

You can read the article on my website, where you can copy the source code.

If you feel like saying thanks, you can buy me a coffee.
Рекомендации по теме
Комментарии
Автор

Hello guys, if you have any questions you can leave a comment, or you can just say HI :)

DigitalFox-tutorials
Автор

You just saved my life... I'm working in receiveing data from a tracker device directly from my local host server to my front end in the dedicated server. Data is flowing through JSON. I was struggling with how to store them in the database. I'm very grateful. Information clearly passed without even speak!! Keep up the great content & job!!

Lullabyt
Автор

simple, concise yet descriptive. THANK YOU

laravelearner
Автор

Shown success buy my db table is still empty😔
What can i do for solve this problem?

rakibulhasanroki
Автор

Whenever I run the file it says success but my dB table is empty

Jizeppi