summaryrefslogtreecommitdiffstats
path: root/public/index.php
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2010-04-14 14:29:15 +0300
committerFilipp Lepalaan <filipp@mac.com>2010-04-14 14:29:15 +0300
commit8760de2115c322cf49906a2e24e8228f5d0763c5 (patch)
treec010b6a4360d85f07ba839623a3551e9dd4f8ca1 /public/index.php
parent63822bacd44d964df3596f928f44a56ab5625d4f (diff)
downloadatwork-8760de2115c322cf49906a2e24e8228f5d0763c5.tar.gz
atwork-8760de2115c322cf49906a2e24e8228f5d0763c5.tar.bz2
atwork-8760de2115c322cf49906a2e24e8228f5d0763c5.zip
More fixesHEADmaster
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>