Hi,
-- You really shold post in the beginners forum if you do not know how to retrieve multiple rows from a table. ANyway..
$result = mysql_query("SELECT username FROM users WHERE loggedin='yes'");
while($row = mysql_fetch_row($result))
{
echo '<b>'. $row[0] . '</b>';
}
Note that just adding a colum to your table won't fly: You need to check whether people are actually stioll logged in. Most people do not log out. They just leave. So you might want to make a table logged in, with a timestamp colum in it, which updates every time a user loads a page. You can then check this table for the number of users active in the last N minutes.