先贴代码:
$tvlistid=$_REQUEST['tvlistid'];
//echo $tvlistid;可以输出
/*function insert_list_classaa ($tvlistid)
//{ global $conn; $sql1 = "select * from channelclasstv where TVID=".$tvlistid;
$rs1 = $conn->execute($sql1);
$list1=explode("|",$rs1->fields['channelclass']);
$j=0;
while($j<count($list1)){
$sql1="select * from channelclass where classid=".$list1[$j];
if($j+1<count($list1)){
$sql1.=" Union All ";
}
$j++;
$sql=$sql.$sql1;
}
$rs=$conn->execute($sql);
echo $sql;
$i=0;
while(!$rs->EOF)
{
$list[$i]['name']=$rs->fields['name'];
$list[$i]['id']=$rs->fields['CLASSID'];
$list[$i]['descrip']=$rs->fields['descrip'];
$list[$i]['channel']=$rs->fields['channel'];
$i++;
$rs->movenext();//错误提示Call to a member function movenext() on a non-object
}
$tvlistid=$_REQUEST['tvlistid'];
//echo $tvlistid;可以输出
/*function insert_list_classaa ($tvlistid)
//{ global $conn; $sql1 = "select * from channelclasstv where TVID=".$tvlistid;
$rs1 = $conn->execute($sql1);
$list1=explode("|",$rs1->fields['channelclass']);
$j=0;
while($j<count($list1)){
$sql1="select * from channelclass where classid=".$list1[$j];
if($j+1<count($list1)){
$sql1.=" Union All ";
}
$j++;
$sql=$sql.$sql1;
}
$rs=$conn->execute($sql);
echo $sql;
$i=0;
while(!$rs->EOF)
{
$list[$i]['name']=$rs->fields['name'];
$list[$i]['id']=$rs->fields['CLASSID'];
$list[$i]['descrip']=$rs->fields['descrip'];
$list[$i]['channel']=$rs->fields['channel'];
$i++;
$rs->movenext();//错误提示Call to a member function movenext() on a non-object
}
我怀疑你这句都没有执行成功,你var_dump一下