remove database entry via link

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

Post Reply
User avatar
robynprivette
Forum Commoner
Posts: 46
Joined: Sun May 02, 2010 6:22 pm

remove database entry via link

Post by robynprivette »

So I have a fansite and what I want to do is allow users to delete entries using a "delete" link which will be located beside certain images. I have NO clue how to go about this. I've been trying for weeks to no end :banghead: If anyone can help I would much appreciate it. I will post code if need be.

Thanks
dimxasnewfrozen
Forum Commoner
Posts: 84
Joined: Fri Oct 30, 2009 1:21 pm

Re: remove database entry via link

Post by dimxasnewfrozen »

You can set an onClick event in javascript, and make an ajax call to a php file that will run the code to delete image

http://www.w3schools.com/php/php_ajax_database.asp

That's how I would go about doing it.
User avatar
robynprivette
Forum Commoner
Posts: 46
Joined: Sun May 02, 2010 6:22 pm

Re: remove database entry via link

Post by robynprivette »

not sure i understand exactly how to use that.. but thanks for replying
Post Reply