';
$conn = new mysqli($mysqlhost, $dbuser, $dbpass, $dbname);
// Run the query.
$result = $conn->query("SELECT * FROM users; LIMIT 10");
// Get the result in to a more usable format.
$query = array();
while($query[] = mysqli_fetch_assoc($result));
array_pop($query);
// Output a dynamic table of the results with column headings.
echo '