Hej,
har nog stirrat mig blind, för följande fel:
Warning: mysqli_select_db() expects exactly 2 parameters, 1 given in xxx
Någon skarpsynt människa som se felet?
public function connect() {
if ($this -> link = mysqli_connect($this -> host, $this -> user, $this -> pass)) {
if (!empty($this -> name)) {
if (!mysqli_select_db($this -> link, $this -> name)) $this -> exception("Could not connect to the database!");
}
} else {
$this -> exception("Could not create database connection!");
}
}