refiking Posted November 3, 2008 Share Posted November 3, 2008 How do I get this to work? Echo ' <td> <a href="index.php' . $slink . '" javascript:imagechange(); onMouseOver="imgChange('5', '/image/down_home.png'); playSound(0);"onMouseOut="imgChange('5', 'image/up_home.png'); playSound(0);" ><img border="0" src="image/up_home.png"><img border="0" src="image/separator.gif" width="2" height="34"></a></td>'; [/php'] Link to comment https://forums.phpfreaks.com/topic/131272-solved-unexpected-tl-number/ Share on other sites More sharing options...
wildteen88 Posted November 3, 2008 Share Posted November 3, 2008 Your need to escape your single quotes within your string. echo ' <td> <a href="index.php' . $slink . '" javascript:imagechange(); onMouseOver="imgChange(\'5\', \'/image/down_home.png\'); playSound(0);"onMouseOut="imgChange(\'5\', \'image/up_home.png\'); playSound(0);" ><img border="0" src="image/up_home.png"><img border="0" src="image/separator.gif" width="2" height="34"></a></td>'; Link to comment https://forums.phpfreaks.com/topic/131272-solved-unexpected-tl-number/#findComment-681584 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.