dodellog.php 1.4 KB

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