SQL Injection and how to prevent it

Associate
Joined
13 Nov 2003
Posts
1,567
Location
Manchester
Hi All

Working on a php based site and have heard about this sql injection thing.

Whats the best way to protect my forms from being exploited.

I have read loads of articles but they dont mean much to me lol

Aaron
 
that link scares me.

All I want to do is make this sql query injection proof.

$sql = "select * from adminusers where username='$username' and password='$userpass'";
 
Back
Top Bottom