Drezard Posted August 2, 2008 Share Posted August 2, 2008 I have this code here: echo "<td style='text-align: center; background: #A2BAFA;' onmouseover='this.style.background=#CAD7F9' onmouseout='this.style.background=#A2BAFA'>"; Now, i need to add something like quotes around the #color declarations. Any ideas? Daniel Link to comment https://forums.phpfreaks.com/topic/117824-simple-problem/ Share on other sites More sharing options...
JasonLewis Posted August 2, 2008 Share Posted August 2, 2008 Use heredoc syntax, much easier. echo <<<html <td style="text-align: center; background: #A2BAFA;" onmouseover="this.style.background='#CAD7F9'" onmouseout="this.style.background='#A2BAFA'"> html; Or you could escape your quotes. Link to comment https://forums.phpfreaks.com/topic/117824-simple-problem/#findComment-606026 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.