We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffcd910 commit 1b72314Copy full SHA for 1b72314
install.php
@@ -1,9 +1,12 @@
1
<?php
2
3
+// Include the database connection.
4
require_once 'database_connection.php';
5
6
+// Drop the 'users' table (if it exists).
7
$mysqli->query("DROP TABLE IF EXISTS `users`;");
8
9
+// Create the 'users' table.
10
$sql = "CREATE TABLE `users` (
11
`id` INT NOT NULL AUTO_INCREMENT,
12
`username` varchar(255) NOT NULL COMMENT 'The username of the user.',
@@ -13,6 +16,7 @@
13
16
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Storage for user authentication details.';";
14
17
$mysqli->query($sql);
15
18
19
+// Generate two test users.
20
$userData = [
21
[
22
'user1',
0 commit comments