幫助,我真的很厭惡在我的結果頁面中使用這一大堆nbsps。我只是一個初學者。你能推薦我一些技巧,以便我不會複製粘貼這些大量的nbsp來獲得我需要的空間和換行符。擺脫nbsp
while($row = mysql_fetch_array($result))
{
echo "Patient #:". " ". " ". " ". " ". $row['PNUM'];
echo "<B>"."Hospital #:"."</B>". " ". " ". " ". " ". $row['HOSPNUM']." "." "." ";
echo "<B>"."Room:". " ". " ". " ". " ". $row['ROOMNUM'];
echo "<B>"."Lastname:". " ". " ". " ". " ". $row['LASTNAME'];
echo "<B>"."Firstname:". " ". " ". " ". " ". $row['FIRSTNAME'];
echo "<B>"."Middlename:". " ". " ". " ". " ". $row['MIDNAME'];
echo "<B>"."Admission Date:". " ". " ". " ". " ". $row['ADATE'];
echo "<B>"."Admission Time:". " ". " ". " ". " ". $row['ADTIME'];
echo "<B>"."Patient #:". " ". " ". " ". " ". $row['PNUM'];
}
「 」有什麼問題? – 2010-02-27 00:42:45
如果您正在使用' '來格式化列以顯示* data *,那就錯誤第一。 – 2010-02-27 00:44:06