Parse err: syntax err, unexpected T_CONSTANT_ENCAPSED_STRING
Posted: Fri May 01, 2009 3:59 am
I am very new to php coding. Your patients is appreciated.
Here is the error that I am getting:
But if I try to have it open in a popover window by adding this to the link:
Here is how I have inserted it:
I find that I get the error I mentioned above.
I have looked around and I have seen it suggested that instead of
I should write
put a "\" where ever there is a double quote. I have tried that and it doesn't seem to work.
Could someone please give a little guidance as to why the extra bit of code is giving me that error?
Thanks again in advance.
Here is the error that I am getting:
I have a link that works perfectly when written like this:Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/tp/public_html/sites/all/modules/custom/tp/tp.module on line 1905
Code: Select all
$output .= '<div id="iu"><a href="http://click.lksr.com/fs-bin/click?id=wup&offerid=15&subid=0&type=4"><img src="http://ad.lksr.com/fs-bin/show?id=wup&bids=15&subid=0&type=4&gridnum=5" alt="Free Samples"/></a></div>';
Code: Select all
onclick="window.open(this.href,'','resizable=yes,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no,width=815,height=824,status'); return false"
Code: Select all
$output .= '<div id="iu"><a onclick="window.open(this.href,'','resizable=yes,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no,width=815,height=824,status'); return false" href="http://click.lksr.com/fs-bin/click?id=wup&offerid=15&subid=0&type=4"><img src="http://ad.lksr.com/fs-bin/show?id=wup&bids=15&subid=0&type=4&gridnum=5" alt="Free Samples"/></a></div>';
I have looked around and I have seen it suggested that instead of
Code: Select all
onclick="window.open ..........
Code: Select all
onclick=\"window.open .........
Could someone please give a little guidance as to why the extra bit of code is giving me that error?
Thanks again in advance.