function displayMembers($id) { $sql = 'select * from group_users where gid = ' . $id . ';'; $result = mysql_query($sql); echo '<table class="groupUser" cellpadding="0" cellspacing="0"> <tr class="groupUserLabelRow"> <td class="groupUserCol_rank"> <strong>Rank</strong> </td> <td class="groupUserCol_username"> <strong>Username</strong> </td> <td class="groupUserCol_title"> <strong>' . $this->title . ' Title</strong> </td> <td class="groupUserCol_joined"> <strong>Joined On</strong> </td> </tr>'; while ($row = mysql_fetch_array($result)) { $group_user = new Group_User($row['username'], $id); $group_user->displayRow(); } echo '</table>'; }