sql_query("SELECT * FROM products WHERE id=".$_GET["id"]); $products=$db->fetched_array(); switch ($products[0]['parent_level']) { case 1: $_GET['cat_id']=$products[0]['parent_id']; break; case 2: $_GET['sub_id']=$products[0]['parent_id']; $db->sql_query("SELECT name,id,cat_id FROM subcats WHERE id=".$_GET['sub_id']); $subname=$db->fetched_array(); $_GET['cat_id']=$subname[0]['cat_id']; break; case 3: $_GET['subsub_id']=$products[0]['parent_id']; $db->sql_query("SELECT name,id,sub_id FROM subsubcats WHERE id=".$_GET['subsub_id']); $subsubname=$db->fetched_array(); $_GET['sub_id']=$subsubname[0]['sub_id']; $db->sql_query("SELECT name,id,cat_id FROM subcats WHERE id=".$_GET['sub_id']); $subname=$db->fetched_array(); $_GET['cat_id']=$subname[0]['cat_id']; break; } $db->sql_query("SELECT name,id FROM categories WHERE id=".$_GET['cat_id']); $catname=$db->fetched_array(); } ?> T&T Industrial Supplies Ltd.
51 Roysun Road, Unit 10 Woodbridge, Ontario, L4L 8P9
Tel: 905.851.4488
Fax: 905.851.4688
Search:

Product >" class="white"> > " class="white"> > " class="white"> >
sql_query("SELECT * FROM `categories` ORDER BY position"); $cats=$db->fetched_array(); if(!isset($_GET["cat_id"])) $_GET["cat_id"] = $cats[0]["id"]; ?>
sql_query("SELECT * FROM `subcats` WHERE cat_id=".$c["id"]." ORDER BY position"); $subcats=$db->fetched_array(); if(!empty($subcats)){ if(!isset($_GET["sub_id"])) $_GET["sub_id"] = $subcats[0]["id"]; foreach($subcats as $s){ if($s["id"] == $_GET["sub_id"]){ ?> sql_query("SELECT * FROM `subsubcats` WHERE sub_id=".$s["id"]." ORDER BY position"); $subsubcats=$db->fetched_array(); if(!empty($subsubcats)){ // if(!isset($_GET["subsub_id"])) $_GET["subsub_id"] = $subsubcats[0]["id"]; foreach($subsubcats as $ss){ if(@$_GET["subsub_id"] == $ss["id"]){ ?> " class="sssubmenua"> " class="sssubmenu"> " class="ssubmenu">
" class="submenu" onMouseOver="activate();" onMouseOut="deactivate();">
" style="background-position:center; background-repeat:no-repeat;">

" target="blank">
" target="blank">

 

Copyright 2006 T&T Industrial Supplies ltd. Website Design by ITW Consulting Corp. Developed by ITW