this is the php file that is supposed to get the ID value sent from the hyperlink in my previous post, then delete a record related to that ID.
[php]<?php
//connect to the database server
include ‘connect.php’;
//get the data from the form
$id = $_GET[‘ID’];
echo $id;
//formulate the query
$result=mysqli_query(“DELETE FROM pdfs WHERE ID=’” . $id . “’;”);
//check if there is an error
if (!$result)
{
die('Error: ’ . mysqli_error());
}
else
{
echo “1 record deleted…”;
}
//close the connection
mysqli_close();
?> [/php]