Hey so i am trying to grab data from mysql database and i am getting double the data in my table when i grab the data from mysql?
Here is the code i am using to make the graph.
$query = "SELECT id,username FROM users";
$result = mysql_query($query);
while($row = mysql_fetch_assoc($result))
{
foreach($row as $id => $val)
{
echo
"<tr>
<td>" . $row['id'] . "</td>
<td>" . $row['username'] . "</td>
<td></td>
<td></td>
</tr>";
}
}
This is the result: