Home > DeveloperSection > Forums > How to create edit and update link
pintu nayak
pintu nayak

Total Post:10

Points:70
Posted on    November-16-2011 2:10 AM

 PHP PHP 
Ratings:


 1 Reply(s)
 1610  View(s)
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


Arun Singh

Total Post:68

Points:476
Posted on    November-16-2011 3:13 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick