thechase22
asked on
The famous Parse error: parse error, unexpected T_STRING
Ok so I got this script thing installed on my site, and the line that I get this error is:
$nrsubscribed.="<font class="title"><center>"._E SOLUTIONNO TSUBSCRIBE D."</font> </center>< br><br>";
Just off hand, can anyone see anything in there missing anything? Installation may be wrong, But Im just curious to see if anything is missing in here?
let me know
Cheers
$nrsubscribed.="<font class="title"><center>"._E
Just off hand, can anyone see anything in there missing anything? Installation may be wrong, But Im just curious to see if anything is missing in here?
let me know
Cheers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Oops. Typo...
$nrsubscribed.= "<font class=\"title\"><center>" . _ESOLUTIONNOTSUBSCRIBED . "</center></font><br /><br />";
; and not ' on the end of the line.
$nrsubscribed.= "<font class=\"title\"><center>" . _ESOLUTIONNOTSUBSCRIBED . "</center></font><br /><br />";
; and not ' on the end of the line.
ASKER
I think you was more or less on track, so ill give the points
Thanks for your time :)
Thanks for your time :)
What do you mean? More or less!? (<grin />)
Ah.
The TString the error is referring to is the word 'title'
After the opening " for class= (which is actually interpreted as the closing "), the next thing would be either a . to append more text or a ; to terminate the statement.
Anyway.
Ta!
Ah.
The TString the error is referring to is the word 'title'
After the opening " for class= (which is actually interpreted as the closing "), the next thing would be either a . to append more text or a ; to terminate the statement.
Anyway.
Ta!
You cannot embed function calls or constants in this way unfortunately. You will need to create normal variables for them.
Also, the HTML is way bad!!! Opening and closing tags out of sequence...
Try ...
$_ESOLUTIONNOTSUBSCRIBED = _ESOLUTIONNOTSUBSCRIBED;
$nrsubscribed.= <<< END_SOME_MARKER
<font class="title"><center>$_ES
END_SOME_MARKER;
or
$nrsubscribed.= "<font class=\"title\"><center>" . _ESOLUTIONNOTSUBSCRIBED . "</center></font><br /><br />"'