I'm having a looping problem.
if (isset($_GET["f"]))
{
$f = $_GET["f"];
}
$tsplit = file ("data/forums.txt");
foreach($tsplit as $tsplitdata) {
// Now split the forum-line
$forumparts = explode ("|", $tsplitdata);
$id = trim($forumparts[0]);
$cat = trim($forumparts[1]);
$forum = trim($forumparts[2]);
if ($id == $f) // match forum
// Draw Navigation System
echo "<font face='verdana' size='2'>";
echo "<table border='0' align='center' style='border: solid 1px #FFFFFF' cellspacing='0' width='95%'>";
echo "<td width='100%'>";
echo "<a href='index.php'>{$boardname}</a>";
echo " ";
echo "»";
echo " ";
echo "<a href='index.php?act=tindex&f={$f}'>{$forum}</a>";
echo "</table>";
echo "</font>";
echo "<br>";
It lists all the forums, like so:
Test Forums » News and Updates
Test Forums » Bug Reports
Test Forums » General
Test Forums » Coding & Scripting
Test Forums » Graphics & Web Design
Test Forums » Show Off
Test Forums » Hosting Resources
Test Forums » Test Forums[/qoute]
Any help?