Update data using codeigniter
code of edit.php file located at application/views :- edit.php <html> <head> </head> <body> <form method="post" action=<?php echo base_url()?>Cnt/update_data> <table> <?php foreach($data as $v) { ?> <tr> <td>Name</td> <td><input type="text" name="emp_name" id="emp_name" value=<?php echo $v->emp_name?>></td> </tr> <tr> <td>Salary</td> <td><input type="number" name="emp_salary" id="emp_salary" value=<?php echo $v->emp_salary?>></td> </tr> <input type="hidden" name="hdn" value="<?php echo $v->emp_id?>"> <tr> <td><input type="submit" name="btn" value="Update"></td> </tr> </table> <