File: WIAdmin/WIModule/modules/forum.php

Recommend this page to a friend!
  Classes of Jules Warner  >  WICMS  >  WIAdmin/WIModule/modules/forum.php  >  Download  
File: WIAdmin/WIModule/modules/forum.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: WICMS
Database driven content management system with PDO
Author: By
Last change:
Date: 3 years ago
Size: 531 bytes
 

Contents

Class file image Download
<?php
include_once 'core/init.php';

$sql = "SELECT * FROM categories ORDER BY category_title ASC";
$res = mysql_query($sql) or die(mysql_error());
$categories = "";

if(
mysql_num_rows($res) > 0)
{
    while(
$row = mysql_fetch_assoc($res))
    {
       
$id = $row['id'];
       
$title = $row['title'];
       
$description = $row['description'];
       
$categories .="<a href='#' class='cat_links'>".$title." -<font size='-1'>".$description."</font></a>";
    }
    echo
$categories;
  
   
}else
{
    echo
"<p> There are no categories available yet.</p>";
}

?>






For more information send a message to info at phpclasses dot org.