i have been lately introduced to method chaining, and am not sure if what I\'m doing here is illegal, or I\'m doing it wrong. I have a database Class like:
c
In query(), you need to return $this otherwise there's nothing to chain it with when the function returns
query()
$this
public function query($query) { $this->last_query = $query; $this->resultset = mysql_query($query, $this->connection); return $this; // <- here }