Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Database extends PDO{
- public function __construct(){
- parent::__construct("sqlite: userquestion.db");
- $this->exec("PRAGMA foreign_keys = ON;"); // enable foreign keys
- }
- }
- class Database extends PDO {
- public function __construct() {
- parent::__construct("sqlite:" . realpath("userquestion.db"));
- $this->exec("PRAGMA foreign_keys = ON;"); // enable foreign keys
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement