class DB_Class {
public $connection;
function __construct() {
$this->connection = new mysqli(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_DATABASE);
if ($this->connection->connect_error) {
die('Oops connection error -> ' . $this->connection->connect_error);
}
$this->connection->set_charset("utf8");
}
}
?>
Fatal error: Uncaught ArgumentCountError: Too few arguments to function User::__construct(), 0 passed in /home/admin/domains/siamtechno.ac.th/public_html/event/signin.php on line 14 and exactly 1 expected in /home/admin/domains/siamtechno.ac.th/public_html/event/include/functions.php:9
Stack trace:
#0 /home/admin/domains/siamtechno.ac.th/public_html/event/signin.php(14): User->__construct()
#1 {main}
thrown in /home/admin/domains/siamtechno.ac.th/public_html/event/include/functions.php on line 9