-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”; –