summaryrefslogtreecommitdiff
path: root/tools/bddb/dodellog.php
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2005-08-12 23:27:18 +0200
committerWolfgang Denk <wd@pollux.denx.de>2005-08-12 23:27:18 +0200
commitd992daf99d1ce39ee18b353b67fdfa181d83fbff (patch)
treea9b5f98b73706e024bc7cd7a14ca2674bd75a55c /tools/bddb/dodellog.php
parentf9d77ed38031fa29d1495bf3cfee385450463f5b (diff)
downloadu-boot-imx-d992daf99d1ce39ee18b353b67fdfa181d83fbff.zip
u-boot-imx-d992daf99d1ce39ee18b353b67fdfa181d83fbff.tar.gz
u-boot-imx-d992daf99d1ce39ee18b353b67fdfa181d83fbff.tar.bz2
Update Hymod Board Database PHP code in "tools" directory
Patch by Murray Jensen, 01 Jul 2005
Diffstat (limited to 'tools/bddb/dodellog.php')
-rw-r--r--tools/bddb/dodellog.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/bddb/dodellog.php b/tools/bddb/dodellog.php
index 5942ec9..9dd78c1 100644
--- a/tools/bddb/dodellog.php
+++ b/tools/bddb/dodellog.php
@@ -10,11 +10,13 @@
pg_head("$bddb_label - Delete Log Entry Results");
- if (!($serno=intval($serno)))
+ if (!isset($_REQUEST['serno']))
die("the board serial number was not specified");
+ $serno=intval($_REQUEST['serno']);
- if (!isset($logno) || $logno == 0)
+ 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");