table help
Posted: Tue Sep 01, 2015 2:14 pm
Hello,
Im needing some help please i want my table to displat like this
Mark Mark Mark
but at the moment its going like this
Mark
Mark
Mark
Can anyone help me please this is the code i have for them to go like
Mark
Mark
Mark
Im needing some help please i want my table to displat like this
Mark Mark Mark
but at the moment its going like this
Mark
Mark
Mark
Can anyone help me please this is the code i have for them to go like
Mark
Mark
Mark
Code: Select all
<?php
$query = mysql_query("SELECT * FROM users WHERE online='1' ORDER BY id DESC LIMIT 5");
$numrows = mysql_num_rows($query);
if ($numrows > 0){
echo '<table><tbody>';
while($row = mysql_fetch_assoc($query)){
$id = $row['id'];
$username = $row['username'];
$email = $row['email'];
echo "<tr><td><div class=\"noline\"><a href='mailto:$email'>$username</a></div></td></tr>";
}
echo '</tbody></table>';
}
else
echo "<div class=\"noline\">No users are online!.</div>";
?>