i have this code
i come up with this in the end
Code:
<?php
$con = mysql_connect("localhost","****","****");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("topclans_users", $con);
$result = mysql_query("SELECT * FROM people");
echo "<table border='1'>
<tr>
<th>people</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['count'] . "</td>";
echo "</tr>";
}
echo "</table>";
mysql_close($con);
?>
?>
im not sure why it does this, is this because it is in a html file?count "; while($row = mysql_fetch_array($result)) { echo ""; echo "" . $row['count'] . ""; echo ""; } echo ""; mysql_close($con); ?> ?>