I have written a script that accesses my MySql dB and outputs the data into html tables...what I want to do now is add the ability to edit and delete data in MySql tables INSIDE the html tables.......for some reason my logic is off and its not working

Can someone put me in the right path?