|
|
$xxx = $conn->fetch_array("select distinct productname from products");
if ($xxx!=-1) {
for ($i=0;$i
=$xxx[$i][productname]?> |
|
}
//if ($idx==null) $idx = $rows[0][idx];
//
//$data = $conn->fetch_array("select * from products where idx=".$idx);
//$img = existImage('product_'.$data[0][idx], 'product_img/');
//$imgsize = getimagesize($img);
//if ($imgsize[0]>400) $imgsize[0]=400;
if ($pn==null) $pn = $xxx[0][productname];
}
?>
|
|
|
if ($pn!=null) $subqry = " where productname='$pn'";
$qry = "select count(idx) as total from products".$subqry;
$total = $conn->fetch_total($qry, 'total');
if ($total == 0) {
echo " | | µî·ÏµÈ ³»¿ëÀÌ ¾ø½À´Ï´Ù | ";
} else {
//$listing = listing($page, $total);
//$qry = "select * from products".$subqry." order by idx desc limit ".$listing[start_no].", ".$listing[pagesize];
$qry = "select * from products".$subqry." order by idx desc";
$rows = $conn->fetch_array($qry);
for($i=0; $i400) $imgsize[0]=400;
?>
=$rows[$i][productname]?> |
}?> |
| =stripslashes($rows[$i][content])?> |
|
$listing[count_no]--;
}
}
?>
|
|