Click to See Complete Forum and Search --> : Call to member function on non-object


hjhawk25
January 15th, 2008, 04:45 PM
I am receiving this error- I took this code/site over from another PHP developer.

PeejAvery
January 15th, 2008, 05:13 PM
Well, which one is line 27? Double check all the variables in that line to make sure that they have been created. And second, make sure that they are objects and not some other data type.

hjhawk25
January 17th, 2008, 09:11 AM
Line 27 is this line:

if(!$this->result = $this->dbconn->query($sql))header("Location: message.php?error=sqlcmd&errno=".$this->dbconn->errno);

I am attempting to find which variable is causing it....