From d04075478d378d9e15f3e1abfd14b0bd124077d4 Mon Sep 17 00:00:00 2001
From: Kevin
Date: Sat, 15 Nov 2014 11:48:36 +0800
Subject: init commit via android 4.4 uboot
---
tools/bddb/dodellog.php | 57 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
create mode 100755 tools/bddb/dodellog.php
(limited to 'tools/bddb/dodellog.php')
diff --git a/tools/bddb/dodellog.php b/tools/bddb/dodellog.php
new file mode 100755
index 0000000..9dd78c1
--- /dev/null
+++ b/tools/bddb/dodellog.php
@@ -0,0 +1,57 @@
+ ?>
+
+ // CSIRO Manufacturing Science and Technology, Preston Lab
+
+ // dodelete page (hymod_bddb / boards)
+
+ require("defs.php");
+
+ pg_head("$bddb_label - Delete Log Entry Results");
+
+ if (!isset($_REQUEST['serno']))
+ die("the board serial number was not specified");
+ $serno=intval($_REQUEST['serno']);
+
+ if (!isset($_REQUEST['logno']) || $_REQUEST['logno'] == 0)
+ die("the log entry number not specified!");
+ $logno=$_REQUEST['logno'];
+
+ mysql_query("delete from log where serno=$serno and logno=$logno");
+
+ if(mysql_errno()) {
+ $errstr = mysql_error();
+ echo "\t\n";
+ echo "\t\t \n";
+ echo "\t\t\tThe following error was encountered:\n";
+ echo "\t\t
\n"; + echo "\t\t\tThe log entry with log number $logno\n"; + echo "\t\t\tand serial number $serno "; + echo "was successfully deleted\n"; + echo "\t\t
\n"; + echo "\t\n"; + } +?> ++
+ ">Back to Log + | ++ Back to Start + | +