jquery instance of the Ajax application of the second-level linkage of the background is to do with PHP, the front desk through the Ajax way to achieve two-level linkage
database table Design Csj_trade
ID int (one) auto_increment
Tname varchar (100)
Tradetype Int (11)
Where ID is the primary key auto-index, tname for the industry name, Tradetype as an identity, 0 o'clock, indicating that this data is a large class, not 0, but a number, this number represents the ID of its parent.
(1) Main Page http://rl.82676666.com
--Industry class-$res 1=result ("select * from Csj_trade where tradetype=0"); while ($rs 1=mysql_fetch_array ($res 1)) {?> "> ————
--Industry small class--
(2) getstrade.php
Require_once ("function.php");
Header ("Cache-control:no-cache");
$id =verify_id ($_get["id"]);
$res =result ("select * from Csj_trade where tradetype=". $id);
$rt = "; while ($rs =mysql_fetch_array ($res)) {$rt. = '. $rs ["Tname"]. "; } $rt. = ';
Echo $rt;
?>
The second-level linkage of AJAX application of jquery instance