Hello, I have some code that I am having trouble with. The code in here is supposed to be a delete tool. When I click "Delete" it wipes the rows in post.

Thank you in advance for fixing it! =D

if ($_POST['Delete'])
        {
			 $deletepos = mysql_query("DELETE FROM posts WHERE body='".$body."'") or die(mysql_error());
		}

I don't need help anymore. =) I figured out a solution and added it. But thanks anyways!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.