forumcats: id, name
forums: id, name, cat_id
How can i join these together and print the forums assigned to the categories under them Would really appriciate if someone could give me a hand
Bu ne demek olduğunu:
A category
A forumA forum
A 2nd category
Another forum
Another forum
Another forum
A 3rd catagory
Another forum
Another forum
Another forum
$reslt = mysql_query("select id, name, cat_id from forums");
while ($row=mysql_fetch_assoc($reslt)) {
echo "<h1>Category here</h1<";
echo "<h3>$row[name]</h3>";
}