Started code yeaah

This commit is contained in:
Lauren Toivanen 2024-09-27 05:47:54 +03:00
commit ced9eba276
Signed by: jt
GPG key ID: 9151B109B73ECAD5
9 changed files with 115 additions and 0 deletions

30
index.php Executable file
View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Snuffler</title>
</head>
<body>
<form>
<textarea name="text" rows="5" placeholder="Whatcha snuffin' about?"></textarea><br />
<select id="user" name="user">
<option value=0>SYSTEM</option>
<option value=1>User</option>
</select>
<input type="submit" id="submit" name="submit" value="Snuff!" />
<h1>Snuffs</h1>
</body>
</html>
<?php
require_once "inc/database.php";
$database = new DataBase();
if(!$database) {
die($database->lastErrorMsg());
}
$database->close();
?>