/***********************************
twoLian.php
***********************************/
无标题文档require_once '../conn.php';
?>
$(document).ready(function(){
$("#bTrade").change(function(){ //jquery中change()函数
$("#quote").load("ajaxtwoLian.php?id="+$("#bTrade").val()); //jqueryajax中load()函数
});
});
——所属行业大类——
$res1=mysql_query("select * from tb_productyijitype");
while($row_res=mysql_fetch_array($res1)){
?>
——<?php echo $row_res['tb_name'];?>——
}?>
——行业小类——
/***********************************
ajaxtwoLian.php
***********************************/
require_once '../conn.php';
header("Cache-Control: no-cache");
$id=$_GET['id'];
$res=mysql_query("select * from tb_producttype where other =".$id);
$rt='';
while($rs=mysql_fetch_array($res)){
$rt.=''.$rs["product_type"].'';
}
$rt.='';
echo $rt;
?>