[php] force an html line to be all on one line

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??

WOO HOO!

solved! after many hours of heart ache i have found my solution! It seems that when my MySQL database was typed each entry had a carriage return in it (not actually visible just an ‘ive pressed enter here’) . therefore when called it added a new line into the HTML! so…on deletion of these it all works!

Anyone know of any way to strip invisible carriage returns?:stuck_out_tongue: