From 8760de2115c322cf49906a2e24e8228f5d0763c5 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 14 Apr 2010 14:29:15 +0300 Subject: More fixes --- public/index.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'public/index.php') 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'); - @work + atwork v0.1 -- cgit v1.2.3