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 (!isset($_REQUEST['serno']))
14
die("the board serial number was not specified");
15
$serno=intval($_REQUEST['serno']);
17
mysql_query("delete from boards where serno=$serno");
20
$errstr = mysql_error();
21
echo "\t<font size=+4>\n";
23
echo "\t\t\tThe following error was encountered:\n";
25
echo "\t\t<center>\n";
26
printf("\t\t\t<b>%s</b>\n", $errstr);
27
echo "\t\t</center>\n";
31
echo "\t<font size=+2>\n";
33
echo "\t\t\tThe board with serial number <b>$serno</b> was"
34
. " successfully deleted\n";
35
mysql_query("delete from log where serno=$serno");
37
$errstr = mysql_error();
38
echo "\t\t\t<font size=+4>\n";
40
echo "\t\t\t\t\tBut the following error occurred " .
41
"when deleting the log entries:\n";
42
echo "\t\t\t\t</p>\n";
43
echo "\t\t\t\t<center>\n";
44
printf("\t\t\t\t\t<b>%s</b>\n", $errstr);
45
echo "\t\t\t\t</center>\n";
46
echo "\t\t\t</font>\n";
56
<a href="browse.php">Back to Browse</a>
59
<a href="index.php">Back to Start</a>