hello
I have a php code which is:
$bodier .= "setInterval('updateClock(\"$date2\",\"clock$x\")',1000);";

I use it like this:
<body onLoad="<?php echo trim($bodier) ; ?>">
it produces:
<body onLoad="setInterval('updateClock("2012-10-31 13:14:01","clock0")',1000);setInterval('updateClock("2012-08-30 13:10:31","clock1")',1000);setInterval('updateClock("2012-08-30 10:16:46","clock2")',1000);setInterval('updateClock("2012-08-30 10:17:28","clock3")',1000);setInterval('updateClock("2012-09-07 10:17:47","clock4")',1000);setInterval('updateClock("2012-08-30 10:18:27","clock5")',1000);setInterval('updateClock("2012-08-29 10:18:41","clock6")',1000);">

and it products an error:
Unterminates string constant

What am I doing wrong

I have also tried copying psting simpley the output as hardcoded instead of the php echo part