query("select pid,pname,price,psay,isdefault from {$dbtbpre}enewsshopps where isclose=0 order by pid"); $str=''; while($r=$empire->fetch($sql)) { $checked=$r[isdefault]==1?' checked':''; $str.="