Location: PHPKode > projects > Mirroring Boards > list_thread.php
<?

echo "<table>\n";
echo " <tr>\n";
echo "  <td width=150>Name\n";

echo " <tr><td colspan=2><hr>\n";

require_once ("secure/mysql.php");

$sql = mysql_query ("SELECT * FROM `mb_threads` WHERE board=\"$board\" ORDER BY id ASC");
while (@extract (mysql_fetch_array ($sql), EXTR_PREFIX_ALL, "thread"))
 {
  echo "<tr><td><a href=list_msg.php?thread=$thread_id>$thread_name</a>\n";
 }

echo "</table>\n";

echo "<br><a href=add_thread.php?board=$board>Add thread</a><br><br>";
mysql_close();

?>
Return current item: Mirroring Boards