das sollte gehen...
Code:
echo "<tr><td colspan='3'><script>";
echo "document.write(summe(".$x.",".$y."));";
echo "</script></td><td>";