I have made the above code which will suffice for my main page of the simple forum I am making. I need to customize this code based on the information I have in the database. Say for example I have 3 forums with the parent the category which would look like this:Code:<html> <head> <title> Forum Index</title> </head> <body> <table class="common-tbl cat" cellspacing="0" cellpadding="0"> <thead> <tr> <th><h4><a href="">Category</a></h4></th> </tr> </thead> <tbody> <tr> <td><h4><a href="" title=""></a>Forum Title</h4>Description</td> <td><a href="" title="">RE: Last Post</a><br /> by <a href="" title="">Member Name</a><br />DateTime</td> </tr> </tbody> </table> </body> </html>
So say I query my database table and count the 3 forums that are linked to that category. How would I make this dynamic? And ideas are appreciated. I have a few of my own which I will attempt now.Code:<html> <head> <title> Forum Index</title> </head> <body> <table class="common-tbl cat" cellspacing="0" cellpadding="0"> <thead> <tr> <th><h4><a href="">Category</a></h4></th> </tr> </thead> <tbody> <tr> <td><h4><a href="" title=""></a>Forum Title</h4>Description</td> <td><a href="" title="">RE: Last Post</a><br /> by <a href="" title="">Member Name</a><br />DateTime</td> </tr> <tr> <td><h4><a href="" title=""></a>Forum Title</h4>Description</td> <td><a href="" title="">RE: Last Post</a><br /> by <a href="" title="">Member Name</a><br />DateTime</td> </tr> <tr> <td><h4><a href="" title=""></a>Forum Title</h4>Description</td> <td><a href="" title="">RE: Last Post</a><br /> by <a href="" title="">Member Name</a><br />DateTime</td> </tr> </tbody> </table> </body> </html>




Reply With Quote