Hi, i need to delete from a database and from a Dir. I know the basics of doing it but i need some help putting it all together. I need to know the loop that i can put together so it can go down the page and delete all of the selected posts and thier images.
So could some please help me out with this.
$sql = "DELETE from table where field='value'";
will delete everything in that row that contains the field value of $value.
However, make sure you back everything up before you start messing with DELETE. 🙂
PHP has a rmdir() function to remove directories that Apache has permissions to delete that is:
http://www.php.net/manual/en/function.rmdir.php
I supect your problem lies more in the process than the syntax however, can you be more specific?