开发者

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:

  1. create ui and button in what ever language you are using.
  2. learn how to fire query in that language. Then use this on click of buttons.
  3. for save button fire an insert query. Example: insert into table values('11','harry');
  4. for delete button fire a delete query for particular record. Example: delete from table where id=1;
  5. for edit button fire an update query for particular record. Example update table set name='Joy' where id='22';
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜