Getting an error but I cannot figure out why, can some help?
This is the error msg
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 '1', r_b='1', rap='1', oldCountry='', country='', metalRock='', classical='', jaz' at line 1
this is my code for it
$rock=$_POST['rock'];
$r_b=$_POST['r_b'];
$rap=$_POST['rap'];
$oldCountry=$_POST['oldCountry'];
$country=$_POST['country'];
$metalRock=$_POST['metalRock'];
$classical=$_POST['classical'];
$jazz=$_POST['jazz'];
$opera=$_POST['opera'];
$punkRock=$_POST['punkRock'];
$ot_music=$_POST['ot_music'];
$otMusic_txt=$_POST['otMusic_txt'];
$music = "UPDATE music SET rock='$rock', r_b='$r_b', rap='$rap', oldCountry='$oldCountry', country='$country', metalRock='$metalRock', classical='$classical', jazz='$jazz', opera='$opera', punkRock='$punkRock', ot_music='$ot_music', otMusic_txt='$otMusic_txt' WHERE userID='kelly'";$result = mysql_query($music) or die(mysql_error());
However it is updating the table and I have identical code but a different table that works just fine.