wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 1 | <?php // php pages made with phpMyBuilder <http://kyber.dk/phpMyBuilder> ?> |
| 2 | <?php |
| 3 | // (C) Copyright 2001 |
| 4 | // Murray Jensen <Murray.Jensen@cmst.csiro.au> |
| 5 | // CSIRO Manufacturing Science and Technology, Preston Lab |
| 6 | |
| 7 | // dodelete page (hymod_bddb / boards) |
| 8 | |
| 9 | require("defs.php"); |
| 10 | |
| 11 | pg_head("$bddb_label - Delete Log Entry Results"); |
| 12 | |
| 13 | if (!($serno=intval($serno))) |
| 14 | die("the board serial number was not specified"); |
| 15 | |
| 16 | if (!isset($logno) || $logno == 0) |
| 17 | die("the log entry number not specified!"); |
| 18 | |
| 19 | mysql_query("delete from log where serno=$serno and logno=$logno"); |
| 20 | |
| 21 | if(mysql_errno()) { |
| 22 | $errstr = mysql_error(); |
| 23 | echo "\t<font size=+4>\n"; |
| 24 | echo "\t\t<p>\n"; |
| 25 | echo "\t\t\tThe following error was encountered:\n"; |
| 26 | echo "\t\t</p>\n"; |
| 27 | echo "\t\t<center>\n"; |
| 28 | printf("\t\t\t<b>%s</b>\n", $errstr); |
| 29 | echo "\t\t</center>\n"; |
| 30 | echo "\t</font>\n"; |
| 31 | } |
| 32 | else { |
| 33 | echo "\t<font size=+2>\n"; |
| 34 | echo "\t\t<p>\n"; |
| 35 | echo "\t\t\tThe log entry with log number <b>$logno</b>\n"; |
| 36 | echo "\t\t\tand serial number <b>$serno</b> "; |
| 37 | echo "was successfully deleted\n"; |
| 38 | echo "\t\t</p>\n"; |
| 39 | echo "\t</font>\n"; |
| 40 | } |
| 41 | ?> |
| 42 | <p> |
| 43 | <table width="100%"> |
| 44 | <tr> |
| 45 | <td align=center> |
| 46 | <a href="brlog.php?serno=<?php echo "$serno"; ?>">Back to Log</a> |
| 47 | </td> |
| 48 | <td align=center> |
| 49 | <a href="index.php">Back to Start</a> |
| 50 | </td> |
| 51 | </tr> |
| 52 | </table> |
| 53 | <?php |
| 54 | pg_foot(); |
| 55 | ?> |