require_once('../etc/common_config.php');
$params = array('page','mcat','scat');
getParam($params, $_GET);
if($mcat || $scat) {
$where = "mcat='$mcat' AND scat='$scat' ";
}else{
$where = "ptypes=2";
}
$db = new DB;
if(!$page)$page = 1;
$q = "SELECT COUNT(id) FROM product_lists WHERE $where";
$db->query($q);
$count = $db->next_record();
$limit_info = limit_per_page($page,$count[0],5);
$limit = "$limit_info[begin],$limit_info[end]";
$q = "SELECT id,price,product_key,mcat,scat,period,quantity,summary,image,timestamp FROM product_lists WHERE $where ORDER BY timestamp DESC LIMIT $limit";
$db->query($q);
?>
Hot Sale : BIF 보루네오 - 미서부지점 LA / OC / Torrance
|
|
|
|
while($row = $db->next_record()){
?>
}?>
|
|
|
|
© 2017 bifinc.com. All rights reserved. |
|
|
|