Hey
Underneith is my code, im having a problem where as when i click the delete button it does what i need it to do (delete a thead) however it also delete the 'title' fields from every other entry in my database ??
this is substantually weird
can anyone help ??
thankyou in advanced
:
<a href='delete.php?sent=true' style="margin-left:60px; font-size:14px; color:#FF0000;"><b>Click me to delete</b></a>
<?php
if ($_REQUEST == 'true') {
$query = "DELETE FROM `forumtutorial_posts` WHERE parentid = '$parentid' OR postid = '$parentid'";
if (mysql_query($query)) {
echo "<script>alert('Topic Deleted'); location.href = 'members.php'; </script>";
}
else {
echo "<script>alert('Something Went Wrong, Contact Reece Stanton'); location.href = 'members.php'; </script>";
}
}
?>