我试图在一段时间内显示用户名,并且我也在 PHP 中编写。但它显示错误。请帮我修复错误:
<?php
include("config.php");
if(time() <= strtotime("2012-11-10")) {
$link=mysql_connect($db_host,$db_username) ;
mysql_select_db($db_name,$link) ;
$query = mysql_query("SELECT * FROM tbluser");
while($v = mysql_fetch_array($query)) {
$username = $v['username'];
echo("<center><table border='1' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='343' id='AutoNumber1'>");
echo("<tr><td><b>UserName</b></td>");
echo("</tr>");
echo("<tr><td>$username</td>");
echo("</td></tr></table>");
}
else
echo 'testing period dated ended';
}
?>