<\/script>')

MYSQL query doesn't work as it should

$sql = "UPDATE `shows` SET `title` = '$title', `tagline` = '$tagline', `desc` = '$desc' , `img_src = '$imgsrc' WHERE id = $showid";

      

The above query doesn't want to work, I just get mysql_error with the message "'on line 1;

Any idea where I am going wrong?

+3


source to share


1 answer


You are missing a check mark:

   `img_src = '$imgsrc' WHERE id = $showid";

      



it should be:

   `img_src` = '$imgsrc' WHERE id = $showid";

      

+5


source







All Articles