Jump to content
MakeWebGames

Recommended Posts

Posted

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%>";

}

Posted

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);

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...