$link=mysql_connect("localhost","root","root") or
die("数据库服务器连接错误".mysql_error());
mysql_select_db("student",$link) or
die("数据库访问错误".mysql_error());
mysql_query("set character set gb2312");
mysql_query("set names gb2312");
?>
下拉框连动三级联动:
onChange="changeselect1(this.value)">
==请选择==
$sql="select * from sanji where flid=1";
$query=mysql_query($sql,$link);
while($arr=mysql_fetch_array($query))
{
echo "
value=".$arr["id"].">".$arr["title"]."
\n";}
?>
onChange="changeselect2(this.value)">
==请选择==
==请选择==