//#################################################### // CATCOL.PHP // This file is responsible to displaying catagories // and sub-dirs. //#################################################### if ($catname) { print("
| ");
function column()
{
global $cat_tbl;
global $where_clause;
global $categories_per_column;
global $file;
global $ccatid;
global $cantall;
$sql = "select * from $cat_tbl $where_clause order by catname";
$result = mysql_query ("$sql");
$catcounter = mysql_num_rows($result);
for ($i=0; $i<$catcounter; $i++)
{
$row = mysql_fetch_array($result);
$catid = $row["catid"];
$catfatherid = $row["catfatherid"];
$catname = $row["catname"];
$catdescription = $row["catdescription"];
$total = $row["total"];
$catimage = $row["catimage"];
$catno = $catno + 1;
//print(" $catdescription \n");
$filename = "templates/cat.html";
$fd = fopen ($filename, "r");
$file= fread ($fd, filesize ($filename));
$file = str_replace("{IMAGE}", " | "); } } print(" |