21,886
社区成员
发帖
与我相关
我的任务
分享
$m=$empire->query("select id,classid,mtype from {$dbtbpre}ecms_".$tbname." where classid in(7,9,8,22,44,14) limit 300");
while($k=$empire->fetch($m))
{
$id=$k[id];
$classid=(int)$k[classid];
$mtype=$k[mtype];
if ($mtype=="出售"){
$ttid=1;}
elseif($mtype=="求购"){
$ttid=2;}
else {$ttid=3;}
echo "<div>".$id."-".$classid."-".$mtype."-".$ttid."<div>";
//$sql2=$empire->query("update {$dbtbpre}ecms_flea set ttid='$ttid' where id='$id' and classid='$classid'");
}