时间:2021-07-01 10:21:17 帮助过:2人阅读
php 处理代码
header("Content-type: text/html;charset=GBK");//输出编码,避免中文乱码
$pid=$_GET['pid'];
$db=mysql_connect("localhost","root","7529639"); //创建数据库连接
mysql_query("set names 'GBK'");
mysql_select_db("menuclass");
$sql="select classname from menu where parentid=".$pid."";
$result=mysql_query($sql);
//循环列出选项
while($rows=mysql_fetch_array($result)){
echo 'n";
}
?>
http://www.bkjia.com/PHPjc/630541.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/630541.htmlTechArticleajax +php 二级联动菜单代码 script language=javascript var http_request=false; function send_request(url){//初始化,指定处理函数,发送请求的函数 http_reque...