I have the following snippet:
<?php
$query = mysql_query("SELECT * FROM users") or die(mysql_error());
echo "<table>";
while ($row = mysql_fetch_array($query))
{
echo "<tr>";
foreach($row as $value)
{
echo "<td>".$value."</td>";
}
echo "</tr>";
}
echo "</table>";?>
This snippet should, I think, output each piece of data from the table once. The problem is, I get it twice. So, for example
[email protected] [email protected] Joe Joe Bloggs Bloggs
Why might it be doing this?