html into database

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
chris98
Forum Contributor
Posts: 103
Joined: Tue Jun 11, 2013 10:47 am
Location: England, United Kingdom

Re: html into database

Post by chris98 »

So what could I do then?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: html into database

Post by Celauran »

You know the ID is going to be in $_POST['name'] (which you should consider renaming IMO). You can use that to fetch any information you need from the database (ie. which file(s) to delete) and you can use it in your DELETE FROM statement.
Post Reply