How to Prevent PHP Code from SQL Injection | PHP Tutorial | Core PHP Method

Publié le: 07 juin 2020
sur la chaîne: Skill Institution
81
4

Here we are showing full practical code example to prevent Core PHP Code from SQL Injection.
What is SQL Injection?
It's a technique basically that attackers use to attack on our web application. They come on our web form and put statement with invalid character or SQL query.
When they will submit that information through text box, that will destroy our database and application.

In this video, we are teaching how to clean this things to avoid any kind of unfortunate things like SQL Injection.
We should use mysqli_real_escape_string() function that provided by PHP and pass the parameter that we want to clean and clear.

$username = mysqli_real_escape_string($connection, $username);
$password = mysqli_real_escape_string($connection,$password);


Click here:
Install Linux Step by Step method and Guide:
   • Install Linux Step by Step method.  

How to install and configure Web Server in Linux - Step by Step Method
   • How to Install and Configure Web Server in...  


Sur cette page du site, vous pouvez voir la vidéo en ligne How to Prevent PHP Code from SQL Injection | PHP Tutorial | Core PHP Method durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Skill Institution 07 juin 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 81 fois et il a aimé 4 téléspectateurs. Bon visionnage!