<p><?php
require ('boards/sqlconn.php');
require ('boards/config.php');
echo '<table>
<tr style="vertical-align:top"><td colspan="3">';
$header = mysql_fetch_row (mysql_query ('SELECT `value`, `value2` FROM `misc` WHERE `name` =
\'announce\''));
if ($header[1])
echo 'Announcements ('.date2 ($header[1]).'): '.$header[0];
?></p>
but all I get is a little Black box under where I want it. And when I highlight it, it only shows some of the PHP code
tag! :p though that is more of a design quirk than an actual bug... stylesheets are your friends!
it looks like your SQL statement is messed up in it's basic formatting. try this instead:
$header = mysql_fetch_row (mysql_query ("SELECT value, value2 FROM misc WHERE name = 'announce'"));
I'm assuming value and value2 and name are real database fields, and misc is a real database table.
and just what is the date2() function supposed to do? i see an extra space between date2 and the (, which should not be there if date2 is a real function.