-3
對於我的表後因故顯示以下多餘的文字:回聲;」PHP與HTML回聲回聲
我打的代碼很多,但得到相同的結果
if (mysqli_num_rows($result) > 0)
{
echo "<table>";
echo(
"<tr>"
."<th>"
."Online Users"
.$num_rows
."</th>"
."<th>"
."Offline Users"
."</th>"
."</tr>"
);
while($row = mysqli_fetch_assoc($result)) {
echo(
"<tr>"
."<td>"
.row['name']
."</td>"
."</tr>"
);
}
echo "</table>";
} else {
echo "an error has occurred";
}
我不認爲echo();是正確的語法...這是相當回聲「hhsjsjdn」; –