session_start(); include("common.inc"); $db=new DB_sql; $db->connect(); if (is_int($id)) {die ("非法操作!");} //判断$id值是否合法。 if (isset($id)){ $strQuery="select id,column_id,ximg_name,dimg_name,pingpai,leibie,xinghao,jiage,Post_time,jieshao,flag,cx1,cx2,cx3,cx4,cx5 from cheaa_cpzs where id='$id' and flag='Y'"; $db->Query($strQuery); if ($db->num_rows()==0) {die ("错误:页面不存在!");} $db->next_record(); list ($id,$column_id,$ximg_name,$dimg_name,$pingpai,$leibie,$xinghao,$jiage,$Post_time,$jieshao,$flag,$cx1,$cx2,$cx3,$cx4,$cx5) =$db->Record; ?>
品 牌 |
echo"$pingpai";?> |
产品大类 |
if ($column_id=="3"){echo "空 调";} elseif ($column_id=="494"){echo "太阳 能";} elseif ($column_id=="493"){echo "投影蓝光";} elseif ($column_id=="7"){echo "平板电视";} elseif ($column_id=="8"){echo "冰 箱";} elseif ($column_id=="9"){echo "洗衣 机";} elseif ($column_id=="10"){echo "生活电器";} elseif ($column_id=="11"){echo "厨 卫";} elseif ($column_id=="13"){echo "3G 产品";} elseif ($column_id=="14"){echo "上游零配";} else{echo "其 它";}?> |
产品小类 |
query($strQuery); while ($db->next_record()) { list($id,$columnid,$name,$flag,$cx1name,$cx2name,$cx3name,$cx4name,$cx5name)=$db->Record; $a[1]=$cx1name; $a[2]=$cx2name; $a[3]=$cx3name; $a[4]=$cx4name; $a[5]=$cx5name;$leibie=$name;}echo"$leibie";?> |
产品型号 |
echo"$xinghao";?> |
价 格 |
echo"$jiage";?> |
发布时间 |
echo"$Post_time";?> |
echo"$a[1]";?> |
echo"$cx1";?> |
echo"$a[2]";?> |
echo"$cx2";?> |
echo"$a[3]";?> |
echo"$cx3";?> |
echo"$a[4]";?> |
echo"$cx4";?> |
echo"$a[5]";?> |
echo"$cx5";?> |
产品介绍 |
echo nl2br($jieshao);}?> |