I am new to SQL injection and I want to ask something about the update statement
(not asking how to prevent the injection...... I am asking for example how to inject update statement to an update statement with SQL injection)
if I have a table named "users" and columns id, Fname, Lname, Ip, Sex, date, Signature and I use this to update
mysql_query("UPDATE users SET Fname='$fname', Lname ='".$_GET["lname"]."', Ip ='$ip' ,Sex ='sex' WHERE id='$id'")
can you inject to update "Signature" too from the lname ? like how it works?
edit.php?id=1&lname=Boris&lname=' , Signature = '123&ip=123&Sex=1
(it's not working)
can you refer me where I can read on this? I tried to search SQL injection but I can't find how you can update inside update statement