hi i trying to make a delete row word where i click on the word and i delete the row. the problem is in line 46 and 47 i dont know how to hyberlink the word to go to the othe file i keep getting errors i dont know why.
any help please
any help please
Code:
<h1>Booking Table (Unconfirmed Booking)</h1>
<?php
include("config.php");
$con = mysql_connect($mysql_host, $mysql_user, $mysql_password);
mysql_select_db($mysql_database, $con);
$result = mysql_query("SELECT * FROM names");
echo "<table border='1'>
<tr>
<th>Booking ID</th>
<th>Firstname</th>
<th>Lastname</th>
<th>Adress</th>
<th>City / Town</th>
<th>Postcode</th>
<th>Phone Number</th>
<th>E-Mail</th>
<th>Cottage</th>
<th>Start Date</th>
<th>End Date</th>
<th>Conformation</th>
<th>Confirm Booking</th>
<th>Delete Booking</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['id'] . "</td>";
echo "<td>" . $row['firstname'] . "</td>";
echo "<td>" . $row['lastname'] . "</td>";
echo "<td>" . $row['address'] . "</td>";
echo "<td>" . $row['citytown'] . "</td>";
echo "<td>" . $row['postcode'] . "</td>";
echo "<td>" . $row['phonenumber'] . "</td>";
echo "<td>" . $row['emailaddress'] . "</td>";
echo "<td>" . $row['cottage'] . "</td>";
echo "<td>" . $row['startdate'] . "</td>";
echo "<td>" . $row['enddate'] . "</td>";
echo "<td>" . $row['conformation'] . "</td>";
[B]echo "<td>" . Confirm . "</td>";[/B]
[B]echo "<td>" . Delete . "</td>";[/B]
echo "</tr>";
}
echo "</table>";
mysql_close($con);
?>
<p>
<INPUT type="button" value="Log Out" onClick="location.href='adminlog.php'">
<html>
Comment