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'; ?>
新增産品
PRODUCT
0){ foreach($rec_product as $a){ // 讀取第一張圖 $sql = "select * from e_productpic where MecNum=".$a['Num']." order by Seq, Num limit 0, 1"; $rs_pic = $gDbManager->DbGetRow($sql); ?>