Originally posted by mcadle
<?php
function head() {
global $slogan, etc..
<table><tr><td>echo date("D M j Y");</td></tr></table>;
}
?>
Well, you can't just put HTML inside PHP, and vice-versa. What you want is something like this:
function head() {
global $slogan, $etc; // or whatever your globals are
echo '<table><tr><td>', date('D M j Y'), '</td></tr></table>';
}
Note that each separate element of the echo is separated by a comma--[man]echo[/man] takes multiple parameters, and outputs all of them.
If you were using a function like [man]print[/man], however, you would need to concatenate them by using a period instead: print '<table><tr><td>' . date('D M j Y') . '</td></tr></table>';
Hope that helps.