I have an annoying error while trying to get javascript rollovers to work in php.
when my code is generated it splits the javascript onto multiple lines and this causes unterminated string constant errors in IE.
my php code is:-
echo "<td width=\"205\" rowspan=\"3\" valign=\"top\"><a href=\"#\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('$row[ppcode]','','$row[rollover]',1)\"><img src=\"$row[pic]\" name=\"$row[ppcode]\" width=\"205\" height=\"154\" border=\"0\"></a></td>";
which in my editor is all on one line.
The html it generates is split over multiple lines and i dont know why.
the splits always come just after a value that has been called from MySQL db.
Is there a way i can force the line to generate as 1 line of code??