Parse Error Unexpected T_CONSTANT_ENCAPSED_STRING

Mobile
feeds
Welcome Login | Register

Parse Error Unexpected T_CONSTANT_ENCAPSED_STRING
  Forums Index
      » PHP Forums
        » » parse error unexpected T_CONSTANT_ENCAPSED_STRING



Parse Error Unexpected T_CONSTANT_ENCAPSED_STRING
Post Description:
Post Tags: parse, error, unexpected, t, constant, encapsed, string, free php support, php scripts, php questions, php answers, programming, codes, scripts
This Post Has Been Viewed 240 Times Since Sun Apr 06, 2008 1:00 pm Posted By weblure475 with 3 replies
Parse Error Unexpected T_CONSTANT_ENCAPSED_STRING
im getting this error

can you help me?

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in includesglobals.php on line 247


this is how line 247 looks like:

if($config['ModRewriteEnable']){
return 'accessory-'.$pID'.html';
}else{
return 'proddetail.php?prod='.$pID;
}

thank you



Leave Your Comments






Share
URL:
You can use this HTML code to put it on your website to show your friends this wallpaper. Use this code on your profile like myspace, friendster, Facebook or others. Just Copy and Paste it in your HTML on your websites



Fourms BBCODE:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums





Comments and replies About Parse Error Unexpected T_CONSTANT_ENCAPSED_STRING




:: 1 :: Reply #48956 Reply By hostman On Sun Apr 06, 2008 1:01 pm
you have a problem:

change from:
if($config['ModRewriteEnable']){
return 'accessory-'.$pID'.html';
}else{
return 'proddetail.php?prod='.$pID;
}


to
if($config['ModRewriteEnable']){
return 'accessory-'.$pID.'.html';
}else{
return 'proddetail.php?prod='.$pID;
}


the problem was that you were missing a dot after:
'accessory-'

:: 2 :: Reply #48957 Reply By weblure475 On Sun Apr 06, 2008 1:02 pm
gotcha..

thanks.

i dont get it anymore
:: 3 :: Reply #79294 Reply By miki On Tue Nov 04, 2008 8:31 pm
<p>can you help me too?</p> <p>am having an error in my join page. before it was ok.. </p> <p>parse error: parse error, unexpected t_constant_encapsed_string in /home/content/l/a/b/labyu0329/html/join.php on line 121</p> <p>and here is the line 121</p> <p>&lt;td rowspan=2 class=&quot;lined form_tip&quot; valign=&quot;top&quot;&gt; select membership package</p> <p>thank you in advance :)</p>