如何在 sql 到 html 页面上列出所有用户?我用了这段代码;
$query = mysql_query("SELECT username FROM Users WHERE id<'".$row['id']."'");
$rowtwo = mysql_fetch_array($query) or die();
echo '<table>
<tr>
<td><font size="2" face="Lucida Sans Unicode" color=#EBEBEB>' .$rowtwo['username'].'</td>
</tr>
</table>';
注意:$row['id'] 是当前用户 ID