开始处加上
extract($_GET);
extract($_POST);即
<?
extract($_GET);
extract($_POST);
$StrSql="select new_confesstype.id as id,new_confesstype.type as new_type from new_confesstype,new_fabu where new_confesstype.id=new_fabu.typeid";
$Result=mysql_query($StrSql,$Server) or die($StrSql);
另外判断是否返回空记录应在
while($Row=mysql_fetch_object($Result))
{

$a[$Row->id]=$Row->new_type;
}
之前,已然没有记录还做他干吗?