I was looking for information about parameterized queries, the problem is that I cant find basic examples to follow in php
.
Is this correct?
PHP
$email= $_POST["email"]; //or mysqli_real_escape_string($_POST["email"]);?
SQL
SET @email = '$email';
SELECT email FROM users WHERE email=@email
Whit this configuration would be enough to avoid sql injections?