parent
8d73b5d80f
commit
92c6bea0fb
|
@ -5,7 +5,7 @@ session_start();
|
||||||
$db = new SQLite3('ask.db');
|
$db = new SQLite3('ask.db');
|
||||||
|
|
||||||
$users_table = $db->query("CREATE TABLE IF NOT EXISTS users(
|
$users_table = $db->query("CREATE TABLE IF NOT EXISTS users(
|
||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
username TEXT,
|
username TEXT,
|
||||||
shadow TEXT,
|
shadow TEXT,
|
||||||
name TEXT,
|
name TEXT,
|
||||||
|
@ -13,7 +13,7 @@ $users_table = $db->query("CREATE TABLE IF NOT EXISTS users(
|
||||||
)");
|
)");
|
||||||
|
|
||||||
$db->exec("CREATE TABLE IF NOT EXISTS questions(
|
$db->exec("CREATE TABLE IF NOT EXISTS questions(
|
||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
user INTEGER,
|
user INTEGER,
|
||||||
by INTEGER,
|
by INTEGER,
|
||||||
question TEXT,
|
question TEXT,
|
||||||
|
|
Loading…
Reference in New Issue