Page 1 of 1
remove database entry via link
Posted: Wed May 05, 2010 12:57 pm
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

If anyone can help I would much appreciate it. I will post code if need be.
Thanks
Re: remove database entry via link
Posted: Wed May 05, 2010 1:05 pm
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.
Re: remove database entry via link
Posted: Wed May 05, 2010 1:19 pm
by robynprivette
not sure i understand exactly how to use that.. but thanks for replying