可以说我检索了他们的位置属于top8的所有值。我将它们填充到表中,而不是显示不同类型的值,它显示3个具有3个不同值的表格,这是怎么回事?任何帮助,使不同的值属于某些值将全部显示出来?我只需要一张有3个不同值的表格。
$facebookID = "top8";
mysql_connect("localhost","root","password") or die(mysql_error());
mysql_select_db("schoutweet") or ie(mysql_error());
$data= mysql_query("SELECT schInitial FROM matchTable WHERE position='".$facebookID."'")
or die(mysql_error());
while($row = mysql_fetch_array($data))
{
?>
team 1.1>= $row['schInitial']?> | |||||
team 1.2>= $row['schInitial']?> | |||||
}
?>