Init commit

This commit is contained in:
Archie Fox
2024-06-08 14:22:07 +03:00
commit a9853c39cc
9 changed files with 201 additions and 0 deletions

17
classes/MyDB.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
namespace classes;
use SQLite3;
class MyDB extends SQLite3
{
public function __construct()
{
$this->open('mysqlitedb.db');
}
}
$db = new MyDB();
$db->exec('CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT UNIQUE, pass TEXT)');