Please tell me if quotes protect from sql injections. I have such codes
mysqli_query($link, "SELECT `kredits` FROM `users` WHERE `mail` = '$mail' AND `password` = '$pass'"); mysqli_query($link, "INSERT INTO `vivod` (`summa`, `email`) VALUES ('$zsum', '$summal')"); Are they protected from sql injection? And if not, can mysqli_real_escape_string protect?