I use this code to output all threads with a specific forum ID
$query = mysql_query("SELECT * FROM forums JOIN threads ON threads.fid = forums.id WHERE forums.id = ".intval($_GET['forumID']));
$forum = mysql_fetch_assoc($query);
?>
<h1><a>Forums</a> > <?=$forum['name']?></h1>
<?php while ($thread = mysql_fetch_array($query)): ?>
<?=$thread['title']?>
<?php endwhile; ?>
forums
id, name, description
threads
id, title, message, fid
Thing is that it outputs all threads exept one. If I remove one it just hides another. Why is that?
Would really appreciate some help!
sorry my english is not that good, lets say i have 4 records in threads with fid = (in this case 1), it only outputs 3 of them