1. how to work php sql injection and use in site ?
我的網站登錄過程輕鬆登錄任何用戶名用戶名爲& password.plz描述如何安全登錄過程。如何在網站上使用php sql注入和使用?
例如:
$logindetail = "select * from tablename where username = '".$_REQUEST['username']."' and password = '".$_REQUEST['password']."' ";
$sqlrun = mysql_query($logindetail);
$recordcount = mysql_num_rows($sqlrun);
在這個登錄過程
如何將SQL使用注射?
你能告訴我們完整的代碼嗎? –
我認爲這會幫助你http://stackoverflow.com/questions/60174/how-can-i-prevent-sql-injection-in-php?rq = 1 –
檢查以下鏈接http://www.tricksofit.com/2013/10/difference-between-mysql-pdo –