So I can set up LAMP servers, but don't actually know much about writing PHP and have been trying to learn some basics. I've managed to create MySQL databases, tables, add entries with a form, view entries in a HTML table and such.
I can also delete entries but with my newbie-ness it requires modifying the file for each entry I want to delete. I was wondering if anyone has some pointers on how I would go about making a still basic but more user friendly version that perhaps even allows just entering a value into a form that takes that value, substitutes it into the delete file, and performs the delete. The site i've found most useful so far is w3schools so i'm currently just imitating and modifying the guides on there for my needs.
I guess the way I should go about it is make a HTML form that defines the action to take once the value has been submitted, then the defined action file (my delete file) should subtitute that value in?
Besides the other required stuff, can I just take what it would say after name=?
(in the HTML file)
DELETE FROM columnname WHERE fieldname="something"
(in the delete PHP file)
to get that value the user inserted into the form, over into my delete file?
Thanks for reading!
Edited by Sainesk - 1/10/14 at 9:01pm