Hi,
Thanks for all your suggestions. I found out something interesting by simply changing this if(isset($POST['submit']))
When I capitalized the word submit as in if(isset($POST['Submit']
the delete function worked off of the previous page.
The previous page (admin page) as I mentioned is a table of all the records in the database but with limited information. With each record is a radio button and corresponding submit button labelled full record.
When the radio button is clicked and matching full record button this calls the display_record.php the page in question. However since I changed the code as described above, the display_record.php only shows a blank page. When I view the database the corresponding record that was to be displayed is deleted.
if (!$db) {
echo "Could not change into the database";
exit;
}
if(isset($_POST['Submit1'])) {
$query = "Delete FROM LIST_table WHERE listee_id='$_POST[radiobutton]'";
mysql_query($query);
} else {
$query = "SELECT * FROM LIST_table WHERE listee_id='$radiobutton'";
$result = mysql_query($query) or die("Cannot perform record query.");
$row = mysql_fetch_array($result);
?>
The else statement above is never executed when the word submit is capitalized. What I want to happen is that the matching record will display when display_record.php is called and that the user can delete only if they click the delete button on that web page.
I have never typed that much in my life. I hope I cleared things up a bit for you.
Thanks again
GB