Page 1 of 1

Displaying a member list

Posted: Mon Oct 13, 2003 4:01 pm
by Rob
How would I display every username in a SQL table in a html table?

Posted: Mon Oct 13, 2003 5:35 pm
by JAM

Code: Select all

$result = mysql_query("select username from username_table");
echo '<table>';
while ($row = mysql_fetch_array($result)) {
    echo '<tr><td>'.$row[0].'</td></tr>';
}
echo '</table>';

Posted: Tue Oct 14, 2003 4:41 pm
by Rob
thanks