Brushing up on php and working on a simple program where I’ve run into an issue. I can’t seem to figure out how to delete a mysql row. I will link my script in a pastie document so you can see how I have it set up.
I’m not familiar with AJAX or Javascript.. so I just made the delete button a form. I’d like to keep it like this for now if I can make it work.
On line 30 you have two inputs named
del, and the second one does not contain the name to deleteNeed to change to something like –
Then change lines 12-13 to
Please note that
mysql_functions are depreciated, and you are subject to sql injection.