Well, what w/this?
echo '<table>
</table>
</body>
</html>';
That seems pretty broken, to me.
Granted, it might not of when I was a newb (if, indeed, I'm not now), because I learned HTML by reading Microsoft application-generated source (it wasn't a good thing).
You might consider attempting to seperate your logic from your presentation, e.g.:
<?php
// foobar.php - my application
function foo($a) {
return $bigarray;
}
function bar($b) {
return $someresult;
}
$textline="This is something I want on my page.";
if (1) {
?><html>
<head>
<title>My Page</title>
</head>
<body>
<table>
<tr>
<td><?php echo $textline; ?></td>
</tr>
<tr>
<td><?php $t=bar(); echo $t . "is the result."; ?></td>
</tr>
</table>
</body>
</html>
<?php
}
?>
But, who wants to listen to me. I think I'm braindead this a.m.
Good luck,