while($row = mysql_fetch_array($result)) { printf("<tr><td> %s</td><td> %s</td></tr>", $row["nick"],$row["id"]); }