connect(); //===取出省份名称=== $strQuery="select num,name from province where flag='Y' order by num asc"; $db->query($strQuery); while ($db->next_record()){ list ($this_num,$this_name)=$db->Record; $show_province_name[$this_num] = $this_name; }//===== if (is_int($id)) {die ("非法操作!");} //判断$id值是否合法。 ?>
首页 -> 供求信息
   
query($strQuery); if ($db->num_rows()==0) {echo "Sorry,暂时符合条件的没有记录!"; die();} $db->next_record(); list ($id,$m_id,$info_type,$pt,$pct,$title,$content,$validate,$company,$province,$city,$address,$code,$contact, $tel,$fax,$email,$flag,$reg_time)=$db->Record; $content=trim($content); //=== ?>
标题:
类别:
发布单位:
发布日期:
详细内容:
联系人:
联系地址:
联系电话:
传真:
Email:
以上信息均为中国家电在线会员发布,信息的真实性由发布单位负责。

 新家电网推荐
 今日最新供求信息
='$currentdate' order by id desc limit 0,5"; $db->query($strQuery); while ($db->next_record()){ list($this_id,$this_title)=$db->Record; echo "· $this_title
"; }?>