Why is only one table row selected here? And I need all the contents of the mail table.
<?php $result = mysql_query("SELECT * FROM mail "); $r = mysql_fetch_array($result); ?> <table> <tr> <td>Имя</td> <td>Email</td> <td>Сообщение</td> </tr> <tr> <td><?php echo $r['name']; ?></td> <td><?php echo $r['email']; ?></td> <td><?php echo $r['messages']; ?></td> </tr> </table>