diff options
author | Filipp Lepalaan <filipp@mac.com> | 2010-04-14 14:29:15 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2010-04-14 14:29:15 +0300 |
commit | 8760de2115c322cf49906a2e24e8228f5d0763c5 (patch) | |
tree | c010b6a4360d85f07ba839623a3551e9dd4f8ca1 /public/index.php | |
parent | 63822bacd44d964df3596f928f44a56ab5625d4f (diff) | |
download | atwork-8760de2115c322cf49906a2e24e8228f5d0763c5.tar.gz atwork-8760de2115c322cf49906a2e24e8228f5d0763c5.tar.bz2 atwork-8760de2115c322cf49906a2e24e8228f5d0763c5.zip |
Diffstat (limited to 'public/index.php')
-rw-r--r-- | public/index.php | 8 |
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> |