专家有没有自动增加+1的选项category_level
例如:$cond_cat=" where category_level='1' and ID='$sleads' ";
比$cond_cat=" where category_level='2' and parent_id ='$sleads' ";
我的代码如下。
<?php
include('classes/global.php');
$CT=new Product();
$AdminObj=new Admin();
$sleads=$_REQUEST['sleads'];
$cond_cat=" where category_level='1' and ID='$sleads' ";
$catResult_cond=$CT->getCategory($cond_cat);
$cond_cat=" where category_level='2' and parent_id ='$sleads' ";
$subCatResult_cond=$CT->getCategory($cond_cat);
?>