Jump to content

I'm confused by this, Call to a member function getrows() Error


DOK

Recommended Posts

Hi i'm very noobish when it comes to php and i could relly use some help with this as there is little to no help on google i keep getting this error:  PHP Fatal error:  Call to a member function getrows() on a non-object in /home/e-smith/files/ibays/Primary/html/include/function.php on line 570.

 

function insert_video_channel($a)

{

        global $conn;

        if($a[tbl]=="")$sqlx="channel from video where VID='$a[vid]'";

        else $sqlx="channel from $a[tbl] where GID='$a[gid]'";

        $sql="select $sqlx";

        $rs=$conn->execute($sql);

        $a=$rs->fields['channel'];

        if($a!="")

        {

        $temp=explode("|",$a);

        if(count($temp)>=1) for($i=1;$i<count($temp);$i++) $list.=" or CHID=".$temp[$i];

        $sql="select CHID,name from channel where CHID=$temp[0] $list";

        $rsx=$conn->execute($sql);

 

        $res=$rsx->getrows();  ( This is the line its refering to #570)

 

        return $res;

        }

 

Can someone explain to me what this does and how i can possibly fix this, This would be great, And can you let me know if i posted this in the right section or point me in the right direction, Thank you very much. DOK

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.