this code below outputs this:
[quote]
C: Forum Beta 1.0
News
C: Forum Beta 1.0
Post Testing
C: Maintenance
Bug Reports
C: Maintenance
Suggestions
[/quote]
however, im trying to get it to do this:
[Quote]
C: Forum Beta 1.0
News
Post Testing
C: Maintenance
Bug Reports
Suggestions
[/Quote]
The C: represents catogories...everything else are forums
Is there something I can do to the query to fix this or is it only possible through PHP? Thanks
<?php
if ($_GET['t'])
{
show_source("test.php");
exit;
}
$conn = mysql_connect("localhost", "nick_nick", "-----");
@mysql_select_db("nick_forum", $conn);
$result = mysql_query("SELECT * FROM sections,forums WHERE forums.section_id=sections.section_id");
while ($row = mysql_fetch_array($result))
{
echo "C: " . $row['section_name'] . "\n<br>";
echo $row['forum_name'] . "\n<br>";
}
?>