Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to secure Web app against hackers and SQL injection ?

user-image
Question added by Kamal Al-Ghwaidi , Senior UX / UI Designer and Backend Developer , AD | Ministry of Housing
Date Posted: 2017/06/24
قصي عزام
by قصي عزام , Unity3D Developer , eve virtual

Validate input strings on the server side Exapmle:

$con=mysqli_connect("localhost","user","password","db"); $username = mysqli_real_escape_string($con, $_POST['username']); $password = mysqli_real_escape_string($con, $_POST['password']); $sql_command = "select * from users where username = '" . $username; $sql_command .= "' AND password = '" . $password . "'";

 

More Questions Like This