<div class="box" id="leet">
<h2>Channels</h2>
<p class="author">Feel free to make your own channel and contact zach@mozor.net to get your channel on here</p>
<table>
<tr><th>Channel</th><th>Description</th><th>Website</th></tr>
<tr><td><a href="irc://irc.mozor.net/opers">#opers</a></td><td>The Main Network Channel</td><td><a href="http://www.mozor.net">mozor.net</a></td></tr>
<?php
$result = mysql_query("SELECT * FROM moz_channels WHERE published = 1 ORDER BY id ASC LIMIT 5");
if(!$result) { echo mysql_error();
} else {
while ($row = mysql_fetch_array($result)) {
echo "<tr>";
echo "<td><a href=\"irc://irc.mozor.net/{$row['chan']}\">#{$row['chan']}</a></td>";
echo "<td>{$row['desc']}</td>";
echo "<td><a href=\"http://{$row['site']}\">{$row['site']}</a></td>";
echo "</tr>";
}
}
?>
</table
</div>