I have a non buggy mysql code (it's working and input correct data into every field)
$sql = "UPDATE bloggers SET img_name = '" . $img_name . "', name = '" . $blogger_name . "', blog_url = '" . $blog_url . "', google_plus = '" . $google_plus . "' WHERE blogger_id = '" . $blogger_id . "'";
$res = mysql_query($sql);
if($res)
{return 99;}
else
{return 0;}
where $res will return 99.
However, it's giving me this error.
Invalid query: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''' at line 1
How do I go about solving this problem?
Let me know! Thanks!
Regards