this should fix the problem. i warn you, i'm pretty new at php but it seems to function properly. please let me know if there's any other problems. thanks!
replace linksplus.php with this:
<?php
/*
This file isn't part of PunBB. This file is part of 'linksplus'
a web link modification for PunBB.
PunBB is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
PunBB is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston,
MA 02111-1307 USA
*/
// let's stay within punbb
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'header.php';
// comment out after debugging
//error_reporting(E_ALL);
?>
<p>
<b>Welome to our Web Links Section.</b> Members may submit links using the form below. Please use a
preexisting category unless absolutely necessary. If you desire to browse our repository of weblinks
click on a category below.
</p>
<form action="linksform.php" method="post">
<p><b>Website Name:</b> <input type="text" name="name" />
<b>URL:</b> <input type="text" name="link" />
<b>Category:</b> <input type="text" name="category" /></p>
<p><b>Description:</b> <TEXTAREA name="description" rows="2" cols="80" >
Enter the website description here.</TEXTAREA></p>
<input type="submit" />
</form>
<?php
echo '<p><p><b>Select a Category:</b></p></p>';
// list all categories
$table = $db->prefix.'linksplus';
$result = $db->query("SELECT DISTINCT category FROM $table
ORDER BY category");
$category_url = PUN_ROOT.'linksviewc.php?category='; //how to list by category? get?
while ($row = $db->fetch_assoc($result)) {
echo "<p><b><a href=" . $category_url.$row['category'] . "> ". $row['category'] ."</a></b></p>";
}
// let's stay within punbb
$footer_style = 'index';
require PUN_ROOT.'footer.php';
?>