include("database.php"); // selects all the rows from the "categories" table, then orders them by id, ascending. $result = mysql_query("select * from categories order by id asc") or die(mysql_error()); // a while loop to repeat code until all our rows have been echo'd out.. while($r = mysql_fetch_array($result)) { // redefine our category row variables. $category_id = $r['id']; $category_title = $r['title']; $category_description = $r['description']; ?>
|
echo $category_title; ?> echo $category_description; ?> | |||
|
echo $forum_title; ?> echo $forum_description; ?> |
echo $forum_last_post_title; ?> echo $forum_last_post_username; ?> | echo $forum_topics; ?> | echo $forum_replies; ?> |