sql indection
שלום, יש לי את הקוד הבא:
שלום, יש לי את הקוד הבא:
<? $result = mysql_query("SELECT * FROM xxxxx",$mysql_link) ; $isAuth = false; while($row = mysql_fetch_array($result)) { if($row['xxxx'] === $_POST['username'] && $row['xxxxw'] === $_POST['password']) { $isAuth = true; session_start(); $_SESSION['xxxxx'] = $_POST['xxxxx']; } } if($isAuth) { header("Location: xxxx.php"); } else { header("Location: ./"); } ?>
האם קוד כזה פגיע לSQL INJECTION? יאיר