link = mysql_connect($this->host, $this->user, $this->pass); mysql_select_db($this->dbName, $this->link); } /** * Maak database connectie * @acces private * @returns database link, to be used in other sql calls */ public function getConnection() { if($this->link == null) { $this->connect(); } return $this->link; } } ?>