Glaanieboy
OSNN Veteran Addict
- Joined
- 6 Mar 2002
- Messages
- 2,628
I am having problem with this specific bit of code:
(don't mind the spaces in the IMG tags, the board parsed the IMG tags, instead of just displaying them, so I had to put spaces so the board won't parse them).
It's been giving the "unexpected T_ENCAPSED_AND_WHITESPACE" error. When I remove the [ and ], the error is gone. If I escape them (by putting a \ before each bracket), the error is gone also, but the text is displayed with those escape characters, like this:
Anyone has a solution? So far I haven't found anything on google.
Code:
$bb_img = "[ IMG]http://glaanieboy.dyndns.org/songviewer/songviewer.php?user=$name[ /IMG]";
It's been giving the "unexpected T_ENCAPSED_AND_WHITESPACE" error. When I remove the [ and ], the error is gone. If I escape them (by putting a \ before each bracket), the error is gone also, but the text is displayed with those escape characters, like this:
Code:
\[IMG\]http://glaanieboy.dyndns.org/songviewer/songviewer.php?user=$name\[/IMG\]
Anyone has a solution? So far I haven't found anything on google.