final public function result($sql)
{
return $this->mysql['result']($this->mysql['query']($sql, $this->connection), 0);
}
Anyone got any idea how to best fix this error ?
Avicii
0
Newbie Poster
Recommended Answers
Jump to PostWhat is it supposed to do?
You seem to be calling a property array item ($this->mysql['result']). But I can't see that this is right.return $this->mysql->result($this->mysql->query($sql, $this->connection), 0);
I have no idea, but something like that?
Or even:
$this->mysql->result = ($this->mysql->query($sql, $this->connection), 0); …
Jump to PostI'm assuming you need a:
private $mysql;
for the class?
You seem to be using variable functions. Didn't see that coming. :)
All 7 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.