php sql injection vulnerability?

Dan

New member
If I have the following code in a php file:

$sql = mysql_query("SELECT * FROM users WHERE id='".$_GET['id']."'");

Then what examples of sql attacks would be able to be performed?

I'm trying to understand sql attacks so need to know the basics.
 
Back
Top