Thanks
remove database entry via link
Moderator: General Moderators
- robynprivette
- Forum Commoner
- Posts: 46
- Joined: Sun May 02, 2010 6:22 pm
remove database entry via link
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
If anyone can help I would much appreciate it. I will post code if need be.
Thanks
Thanks
-
dimxasnewfrozen
- Forum Commoner
- Posts: 84
- Joined: Fri Oct 30, 2009 1:21 pm
Re: remove database entry via link
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.
http://www.w3schools.com/php/php_ajax_database.asp
That's how I would go about doing it.
- robynprivette
- Forum Commoner
- Posts: 46
- Joined: Sun May 02, 2010 6:22 pm
Re: remove database entry via link
not sure i understand exactly how to use that.. but thanks for replying