fetch_array("select distinct productname from products"); if ($xxx!=-1) { for ($i=0;$i 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]; } ?>