Functions on Save, Edit, Delete button
Please help me what codes to put on save, edit, delete buttons. I created an employee information management. Also how to integrate this button to my database (mysql). Example when I click save it will automatically save in my database or when I cl开发者_开发技巧ick delete it will also delete the selected data in database.
With your limited description what I can suggest is:
- create ui and button in what ever language you are using.
- learn how to fire query in that language. Then use this on click of buttons.
- for save button fire an insert query. Example:
insert into table values('11','harry');
- for delete button fire a delete query for particular record. Example:
delete from table where id=1;
- for edit button fire an update query for particular record. Example
update table set name='Joy' where id='22';
精彩评论