作者:yklyh | 来源:互联网 | 2018-07-17 02:58
php+js实现省市[select下拉列表]二级关联菜单效果
$link = mysql_connect('localhost','root','root') or die( mysql_error());
mysql_select_db('cshouse',$link) or die('db error');
mysql_query("set Names'gbk'");
/*$sql = "Select * from zgy_classplace where upid=0 order by id asc";
$result = mysql_query( $sql );
$i =1;
$count = mysql_num_rows( $result );
$b=',';
while( $rs = mysql_fetch_array( $result ) )
{
if( $i==$count ){ $b =''; }
echo " new Array("$rs[id]","$rs[cntitle]")$b nt";
$i++;
}
echo ");";
*/
?>
if($_POST)
{
print_r($_POST);
}
?>