dodellog.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 (!($serno=intval($serno)))
  10. die("the board serial number was not specified");
  11. if (!isset($logno) || $logno == 0)
  12. die("the log entry number not specified!");
  13. mysql_query("delete from log where serno=$serno and logno=$logno");
  14. if(mysql_errno()) {
  15. $errstr = mysql_error();
  16. echo "\t<font size=+4>\n";
  17. echo "\t\t<p>\n";
  18. echo "\t\t\tThe following error was encountered:\n";
  19. echo "\t\t</p>\n";
  20. echo "\t\t<center>\n";
  21. printf("\t\t\t<b>%s</b>\n", $errstr);
  22. echo "\t\t</center>\n";
  23. echo "\t</font>\n";
  24. }
  25. else {
  26. echo "\t<font size=+2>\n";
  27. echo "\t\t<p>\n";
  28. echo "\t\t\tThe log entry with log number <b>$logno</b>\n";
  29. echo "\t\t\tand serial number <b>$serno</b> ";
  30. echo "was successfully deleted\n";
  31. echo "\t\t</p>\n";
  32. echo "\t</font>\n";
  33. }
  34. ?>
  35. <p>
  36. <table width="100%">
  37. <tr>
  38. <td align=center>
  39. <a href="brlog.php?serno=<?php echo "$serno"; ?>">Back to Log</a>
  40. </td>
  41. <td align=center>
  42. <a href="index.php">Back to Start</a>
  43. </td>
  44. </tr>
  45. </table>
  46. <?php
  47. pg_foot();
  48. ?>