include("mysql_init.php"); $cmd = "select stu_name from score_table;"; $result = mysql("class07", $cmd); if (mysql_errno() > 0) Header("Location:mysql_err.htm"); echo "
姓名:"; echo ""; while ($row = mysql_fetch_array($result)) echo "" . $row["stu_name"] . ""; echo "全班"; echo ""; echo "
"; echo "