<?php
$sql = mysql_query("SELECT * FROM users;");
while($row = mysql_fetch_array($sql))
{
$dbCon=mysqli_connect("localhost", "root", "", "dbusers")
or die(mysqli_error()."Connection disconnected");
echo "<tr>";
echo "<td>" . $row['UserID'] . "</td>";
echo "<td>" . $row['Firstname'] . "</td>";
echo "<td>" . $row['Lastname'] . "</td>";
echo "<td>" . $row['Gender'] . "</td>";
echo "<td>" . $row['Email'] . "</td>";
echo "<td>" . $row['Status'] . "</td>";
echo "<td>" . $row['Date_joined'] . "</td>";
echo "</tr>";
}
?>
- コードの何が問題になっていますか?
私がいつも得るエラーは次のとおりです。