1 <?php // php pages made with phpMyBuilder <http://kyber.dk/phpMyBuilder> ?>
4 // Murray Jensen <Murray.Jensen@csiro.au>
5 // CSIRO Manufacturing Science and Technology, Preston Lab
7 // dodelete page (hymod_bddb / boards)
11 pg_head("$bddb_label - Delete Board Results");
13 if (!($serno=intval($serno)))
14 die("the board serial number was not specified");
16 mysql_query("delete from boards where serno=$serno");
19 $errstr = mysql_error();
20 echo "\t<font size=+4>\n";
22 echo "\t\t\tThe following error was encountered:\n";
24 echo "\t\t<center>\n";
25 printf("\t\t\t<b>%s</b>\n", $errstr);
26 echo "\t\t</center>\n";
30 echo "\t<font size=+2>\n";
32 echo "\t\t\tThe board with serial number <b>$serno</b> was"
33 . " successfully deleted\n";
34 mysql_query("delete from log where serno=$serno");
36 $errstr = mysql_error();
37 echo "\t\t\t<font size=+4>\n";
39 echo "\t\t\t\t\tBut the following error occurred " .
40 "when deleting the log entries:\n";
41 echo "\t\t\t\t</p>\n";
42 echo "\t\t\t\t<center>\n";
43 printf("\t\t\t\t\t<b>%s</b>\n", $errstr);
44 echo "\t\t\t\t</center>\n";
45 echo "\t\t\t</font>\n";
55 <a href="browse.php">Back to Browse</a>
58 <a href="index.php">Back to Start</a>