include './include/comm.inc.php'; include './include/func.inc.php'; include './include/change_page.php'; db_conn(); $limit = 5; if (!$top_id){ $top_id = 1; $img = "01"; $type = "p"; } $db_query_str .= "select * from `product` where `top_id`='".$top_id."' and `p_type`='".$type."'"; if ($cate){ $db_query_str .= " and `main_id`='".$cate."'"; } $db_query_str .= " order by `p_id`"; $r = db_query(); $number = mysql_num_rows($r); $all = $number/$limit; if (is_float($all)) $all += 1; $all = (int)$all; $db_query_str .= " limit $offset,$limit"; $r = db_query(); $word .= "&top_id=".$top_id."&img=".$img."&type=".$type."&cate=".$cate; $see = $offset/$limit+1; $see = (int)$see; if ($offset > 0) $off = "&offset=".$offset; ?>
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |