PHP Classes

File: examples/example_map.php

Recommend this page to a friend!
  Classes of Ersin Güvenç   PHP Cat Nested Model Category Class   examples/example_map.php   Download  
File: examples/example_map.php
Role: Example script
Content type: text/plain
Description: show map all category
Class: PHP Cat Nested Model Category Class
Manage an hierarchy of categories stored in MySQL
Author: By
Last change: added css
Date: 15 years ago
Size: 911 bytes


Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html" charset="utf-8"; />
<title>Php_cat example</title>
<style type="text/css">
body, a, li, td {font-family:arial;font-size:14px;}
require "../php_cat.class.php";

$params = array(
'separator'=> '&nbsp; > &nbsp;',
'area' => 'client', //or admin
'seo' => true

$phpcat = new php_cat($params);
$map_result = $phpcat->map();

$map_result as $row){
$output = str_repeat("&nbsp;&nbsp;&nbsp;&nbsp;", $row['depth']);
$output.= $row['cat_name']."&nbsp;&nbsp; <font color=red>Level:".$row['depth']."</font><br />";