DbGetRow($sql); $ty = $rs_ty['Num']; } $sql = "select * from e_product where TypeNum=".$ty." Order By Seq, Num "; $rec_product = $gDbManager->DbGetAll($sql); if(count($rec_product) == 1){ echo ''; exit; } include 'head.html'; ?>