summaryrefslogtreecommitdiffstats
path: root/public/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/public/index.php b/public/index.php
index 8ca60a6..f9c6160 100644
--- a/public/index.php
+++ b/public/index.php
@@ -9,9 +9,11 @@
{
$format = '%d-%02d-%02d %02d:%02d';
$date = explode('.', $_POST['date']);
- // First we check if we insert or update
- $sql = 'INSERT INTO atwork (user, start, finish) VALUES (?, ?, ?)';
+ // First we check if we insert or update
+ $sql = 'SELECT id FROM atwork WHERE ';
+ $sql = 'INSERT INTO atwork (user, start, finish, type, notes)
+ VALUES (?, ?, ?, ?, ?)';
$stmt = $db->prepare($sql);
foreach($_POST['start-h'] as $k => $h_start)
@@ -44,7 +46,7 @@
@import url('css/screen.css');
</style>
- <title>@work</title>
+ <title>atwork v0.1</title>
</head>