Jump to content

Object of class mysqli_result could not be converted to string in


kimla

Recommended Posts

Hi.

 

I'm getting this error (see subject), and can't seem to find out why...

 

					
if($this->db->query("INSERT INTO blog VALUES('', '". $userid ."', '". $name ."', NOW()')") != true)
{
	$this->setError("Kunne ikke opprette blogg");
	return false;
}
else
{
	return true;
}

 

$this->db->query is simply:

public function query($var)
{
return $this->link->query($var); 
}

 

in my db-class. Yes, I know it might be a messy way to set it up, but still, should'nt it work?

 

All answers appreciated. :)

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.