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

Link to comment
Share on other sites

wow you people are quick, Thanks. Ok another noobish question how do i go about doing this, as you can tell i know nothing about php except how to create a database and enter the passwords, any help would be great, Thank you.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.