I have a website.
I recently had to extend Sqlite3 to use some functions and define some custom ones, but I now have this error message:
Fatal error: Uncaught exception 'Exception' with message 'SQLite3::__construct() expects at least 1 parameter, 0 given' line 138
this is the line 138:
$output = new functions(); $output-> bothQuery();
My class extending sqlite3:
class functions extends SQLite3 {
// Functions to sort data based on input
public function bothQuery() { /*...*/ }
function nameQuery() { /*...*/ }
function cateQuery() { /*...*/ }
}
How can I solve this?