Skip to content

Commit 1b72314

Browse files
Added more comments to the install.php file.
1 parent ffcd910 commit 1b72314

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

install.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<?php
22

3+
// Include the database connection.
34
require_once 'database_connection.php';
45

6+
// Drop the 'users' table (if it exists).
57
$mysqli->query("DROP TABLE IF EXISTS `users`;");
68

9+
// Create the 'users' table.
710
$sql = "CREATE TABLE `users` (
811
`id` INT NOT NULL AUTO_INCREMENT,
912
`username` varchar(255) NOT NULL COMMENT 'The username of the user.',
@@ -13,6 +16,7 @@
1316
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Storage for user authentication details.';";
1417
$mysqli->query($sql);
1518

19+
// Generate two test users.
1620
$userData = [
1721
[
1822
'user1',

0 commit comments

Comments
 (0)