katman1971 Posted July 6, 2010 Posted July 6, 2010 Hi I'm getting an error message. I know I should escape the apostrophes but I still get the error message: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/buildawe/public_html/store/catalog/includes/languages/english/index.php on line 22 Here is line 22 (before I tried to escape the apostrophes): <td><a href="http://buildawebsite.ie/store/catalog/media/test/test.html" onclick="window.open(this.href,'','resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=500,height=400,status'); return false"><img align="middle" alt="" src="http://buildawebsite.ie/store/catalog/images/play_video.jpg" /></a></td> And here is a few lines around line 22: <tbody> <tr> <td>Video Number 1</td> <td> </td> <td><a href="http://buildawebsite.ie/store/catalog/media/test/test.html" onclick="window.open(this.href,'','resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=500,height=400,status'); return false"><img align="middle" alt="" src="http://buildawebsite.ie/store/catalog/images/play_video.jpg" /></a></td> </tr> <tr> <td valign="middle" align="center"><img height="25" width="11" border="0" align="middle" alt="" src="/store/catalog/userfiles/../images/green_block.jpg" /></td> <td> 2. Test Video Number 2</td> <td> </td> <td valign="middle" align="center"> <a href="http://buildawebsite.ie/store/catalog/media/test1/test1.html" onclick="window.open(this.href,\'\',\'resizable=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,status\'); return false"><img height="18" width="54" border="0" align="middle" src="/store/catalog/userfiles/../images/play_video.jpg" alt="" /></a></td> <td valign="middle" align="center"><img height="25" width="11" border="0" align="middle" alt="" src="/store/catalog/userfiles/../images/green_block.jpg" /></td> </tr>'); Thanks
chadcloman Posted July 6, 2010 Posted July 6, 2010 You know you should only escape the single apostrophes, right? Looks like you've got it correct on line 28. Check out Chad's News.
katman1971 Posted July 6, 2010 Author Posted July 6, 2010 Thanks. There was one apostrophe I was missing when I tried escaping all of the apostrophes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.