I've done this beforebut it's not working for me now. This is the code I am trying:
if($act=="DELETE"){
$query = "DELETE FROM movies WHERE movieName='".$id."' AND owner='".$own."'";
}
The only difference from the way I did it the last time is that I have an AND in there. If you need to see more of the code let me know. I can't show it all as it's not secure. I've put flags up to show me what is working and what isn't. As far as I can see the $act variable is being made equal "DELETE", the $id does equal the appropriate movie title, and the owner $own does equal $own. And this is all true inside the if statement where I query the database. So I'm thinking the error is inside the if statement.
Thanks