HOW TO CREATE EDIT AND UPDATE LINK

pintu nayak

Total Post:10

Points:70
Posted by  pintu nayak
PHP 
PHP
 1841  View(s)
Ratings:
Rate this:
Hi all,



I have 4 input textbox as

empid,empname,empaddress,salary and a Add button.When i enter data and click add button all data will be inserted into database and the result will be display below the page in form of a table.In that data two links such as edit and delete will appears.When we want to edit some data we can do it and also can delete the records  with delete link.How to do it.


Thanks
  1. Arun Singh

    Post:68

    Points:476
    Re: How to create edit and update link

    Hi Pintu Nayak,
    First of all, make two pages something like dataPage.php and footerPage.php where dataPage.php contains your textboxes and Add button and  footerPage.php contains table with buttons (edit, delete etc). After doing this use require function within a form of main page. In footerPage.php, get selected row value and perform appropriate action on button clicks whatever you want either edit or delete.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!