In this video, you will learn how to insert data into a mysql database using PDO in PHP. PDO (PHP Data Objects) is a secure way to connect and execute tasks with the database.
Source Code: https://github.com/Godsont/Insert-To-...
Another advantage of PDO is that it works with a lot of popular databases. So, if at some point of time you want to change the database for your website, you can do that easily by just changing one line of code.
Here we are not using any object oriented way which can help keep code organized for large projects. I recommend you to try adding different tasks in this video to different functions and call the functions whenever necessary.
We are using MySQL database which is mostly used with PHP. We had designed and added validation to the contact form in the previous two videos. Please watch them if you want to know how to create a contact form.
Here are the links:
Design: • How To Design An Awesome Contact Form...
Validation: • How To Add Form Validation using PHP ...
If you liked this video please give it a thumbs up. Subscribe if you haven't already.
------------------------------------------------------------
Music from https://filmmusic.io:
"Tech Live" by Kevin MacLeod (https://incompetech.com)
Licence: CC BY (http://creativecommons.org/licenses/b...)
Sur cette page du site, vous pouvez voir la vidéo en ligne How To Insert Data Into MySQL using PHP | PDO durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur GTCoding 15 février 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 30,858 fois et il a aimé 417 téléspectateurs. Bon visionnage!