15 lines
293 B
PHP
15 lines
293 B
PHP
<?php
|
|
|
|
include_once($_SERVER['DOCUMENT_ROOT'] . "/db_config.php");
|
|
|
|
$stmt = $mysqli->prepare("CREATE TABLE IF NOT EXISTS users(
|
|
id INTEGER PRIMARY KEY,
|
|
username TEXT NOT NULL,
|
|
passwordHash TEXT NOT NULL,
|
|
email TEXT NOT NULL
|
|
);");
|
|
|
|
echo $stmt->execute();
|
|
|
|
|
|
$mysqli->close(); |