here is all code!
<html>
<head>
<title>Online Car Recommender System - Remove A Car</title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<script language="javaScript">
function goto(destination) {
document.location.href=destination;
}
</script>
<link rel=stylesheet href=style.css>
</head>
<body>
<?php
if($usertypeCookie!="administrator")
{
echo " <p> </p><h3> Access Denied <BR><BR><BR> \n" .
" You are not currently logged in as an administrative user <BR><BR><BR> \n".
" You do not have privilege to this page</h3><BR><BR> \n ";
echo " <center><input type=button value='Back' onClick=\"javascript:history.back()\"> \n";
echo " <input type=button value='Login Page' onClick=\"goto('welcome.php')\"></center> \n";
exit;
}
?>
<?php
$db = mysql_connect("localhost", "d99kd", "password");
mysql_select_db("d99kd",$db);
$dbQuery="SELECT * FROM cars where manufacturer='Audi' ORDER BY carID";
$result = mysql_query($dbQuery,$db);
?>
<form action=deleteCarProcess.php>
<div align=center>
<input type=button value='Back' onClick="javascript:history.back()">
<input type=button value='Return To Admin Menu' onClick="document.location.href='administratorHome.php'">
<input type=button value='Logout' onClick="document.location.href='welcome.php?status=logout'">
</div>
<br>
<table class=border align=center width=75% cellspacing=0 cellpadding=5>
<tr><th>Remove An Audi</th></tr>
<tr><td>
<table width=100% cellpadding=3 cellspacing=3 border=0>
<tr>
<td></td>
<td align=left valign=center class="tabletitles">CarID</td>
<td align=left valign=center class="tabletitles">Manufacturer</td>
<td align=left valign=center class="tabletitles">Model</td>
<td align=left valign=center class="tabletitles">Engine Size (l)</td>
<td align=left valign=center class="tabletitles">Num of Doors</td>
<td align=left valign=center class="tabletitles">Bodystyle</td>
<td align=left valign=center class="tabletitles">Price (£)</td>
</tr>
<?php
while ($carInfo=mysql_fetch_array($result)) {
$carID=$carInfo["carID"];
$origin=$carInfo["origin"];
$manufacturer=$carInfo["manufacturer"];
$model=$carInfo["model"];
$engineSize=$carInfo["engineSize"];
$numDoors=$carInfo["numDoors"];
$bodystyle=$carInfo["bodystyle"];
$mpg=$carInfo["mpg"];
$zeroToSixty=$carInfo["zeroToSixty"];
$maxSpeed=$carInfo["maxSpeed"];
$insuranceGroup=$carInfo["insuranceGroup"];
$typicalInsuranceQuote=$carInfo["typicalInsuranceQuote"];
$airbags=$carInfo["airbags"];
$alarm=$carInfo["alarm"];
$aircon=$carInfo["aircon"];
$typicalContractPrice=$carInfo["typicalContractPrice"];
$price=$carInfo["price"];
echo "<tr valign=center> \n" .
" <td align=center><input type=checkbox name=carToRemove[] value='$carID'></td> \n" .
" <td align=left> \n" .
" $carID</td> \n" .
" <td align=left> \n" .
" $manufacturer</td> \n" .
" <td align=left> \n" .
" $model</td> \n" .
" <td align=left> \n" .
" $engineSize</td> \n" .
" <td align=left> \n" .
" $numDoors</td> \n" .
" <td align=left> \n" .
" $bodystyle</td> \n" .
" <td align=left> \n" .
" $price</td> \n" .
" <input type=hidden name=deleteDatabase value='yes'> " .
" <input type=hidden name=theCARID value='$carID'> \n" .
" <input type=hidden name=theMANUFACTURER value='$manufacturer'> \n" .
" <input type=hidden name=theMODEL value='$model'> \n" .
" <input type=hidden name=theENGINESIZE value='$engineSize'> \n" .
" <input type=hidden name=theNUMDOORS value='$numDoors'> \n" .
" <input type=hidden name=theBODYSTYLE value='$bodystyle'> \n" .
" <input type=hidden name=thePRICE value='$price'> \n" .
"</tr>\n\n" ;
}
?>
</table>
</td>
</tr>
<tr><td colspan=8><center><input type=submit name=submit value='Remove These Audis'></center></td></tr>
</table>
</form>
</body>
</html>
If you want the code for deleteCarProcess.php, let me know although i know that it definetly works!