forked from y0gensha/LitePints
-
Notifications
You must be signed in to change notification settings - Fork 0
/
emptyTap.php
39 lines (38 loc) · 927 Bytes
/
emptyTap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<html>
<head>
<title>Tap List</title>
<meta http-equiv="refresh" content="300">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<?php
/*
$db = new SQLite3('db/db.db');
if (isset($_GET['number'])) {
$tapNo = $_GET['number'];
$s=$db->prepare("update taps set
name='',
style='',
brewDate='',
og=0,
fg=0,
srm=0,
ibu=0,
container='',
servingSizeValue=0,
servingSizeUnits='',
notes=''
where number=:number");
$s->bindParam(':number', $tapNo);
$r = $s->execute();
if ($r) {
header("Location: showTaps.php");
} else {
echo "error updating";
}
}
*/
echo "error, must specify tap number";
?>
</body>
</html>