Sanitizing some SQL queries [duplicate]

streamview

New Member
This question already has an answer here: What would be the easiest and most effective way to sanitize this:\[code\]$q = "SELECT * FROM `admin` " ."WHERE `username`=' ".$_POST["username"]."' " ."AND `passcode`=' ".$_POST["password"]."' " \[/code\]Also, I am learning PHP so if you could please provide explanations, tips, suggestions, or more ways to clean up stuff to prevent SQL injections that would be most appreciated
 
Back
Top