başarısız mysql güncelleme sorgusu

0 Cevap php

Benim sorgu kodu:

$query = mysql_query("UPDATE books SET read = 'y' WHERE id = '2'") or die(mysql_error());

ve hata:

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 'read = 'y' WHERE id = 2' at line 1

0 Cevap