naja hab deins davor gelesen also mysql query kann nur einen befehlt ausführen????
wie könnte man noch angreifen?
naja ich mein sowas
Code:
$aendern = "UPDATE pion_menulinks Set linkname = '$linkname', linkziel = '$linkziel', linklist_id = '$linkliste' , linktyp = '$A' , pos = '$posit' WHERE id = '$id'";
$update = mysql_query($aendern);
wenn ich nun für $linkname nem mysql befehl rein schreibe kann das funktionieren oder nur wenn ich es bei $id mache?
bei einer update kommt das:
Anfrage: UPDATE gebiete Set Nahrung = (Nahrung - 0), Forschungszentrum_arbeiter = (Forschungszentrum_arbeiter + 0\' DROP TABLE pion_infos --) WHERE x = '28' and y = '17' Antwort: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\' DROP TABLE pion_infos --) WHERE x = '28' and y = '17'' at line 1 Fehlercode: 1064