BaLoP Posted March 3, 2011 Posted March 3, 2011 i am getting this error some some reason Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/iseeyou9/public_html/preferences.php on line 163 this is line 163 and the ones around it print " You did not type a new image location. <hr width=75%>> Back<hr width=75%>"; } else { $_POST['newpic']=str_replace('\\\'',''', $_POST['newpic']); $db->query("UPDATE users SET display_pic='{$_POST['newpic']}' WHERE userid=$userid",$c); $db->query("INSERT INTO userimages VALUES('',$userid,'{$_POST['newpic']}');",$c); print " Image Changed. <hr width=75%>> Back<hr width=75%>"; } Quote
lucky3809 Posted March 4, 2011 Posted March 4, 2011 Edit... This line is wrong $db->query("INSERT INTO userimages VALUES('',$userid,'{$_POST['newpic']}');",$c); Should be... $db->query("INSERT INTO userimages VALUES('',$userid,'{$_POST['newpic']}')",$c); Quote
lucky3809 Posted March 4, 2011 Posted March 4, 2011 i havent ran the query just thought the ; shouldnt be there by looking at it. I cant see anything else that would be causing that problem unless its something in the code before that's out of place, should post the whole file. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.