no w tej linijce jest to trefne zapytanie.. teraz zrobiłem tak
Kod
mysql_query("UPDATE katalog_dvd SET gatunek='".$_POST['gat']."',opis=".$_POST['op']." WHERE tytul='".$_POST['tyt']);
echo mysql_errno() . ': ' . mysql_error() . "\n";
echo 'próba zapisu: '.$_POST['tyt'] .' ' .$_POST['gat'] .' '. $_POST['op'];
i wywala
Kod
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 ''black & white' at line 1 próba zapisu: black & white qwe ewe