PHP连动下拉菜单
if( !( $link = mysql_connect() ) ){
fatal("Could not connect to local MySQL server.");
}
if( !mysql_select_db( "loaction", $link ) )
{
mysql_close( $link );
fatal("Could not select database ParserSample.");
}
$sql="select * from district order by locationid asc";
$query=mysql_query($sql,$link);
?>
PHP之友评论