I have a table that gets all the data from a MySql database and displays it, and was wondering how to change the table cell to a text area on click and also display 2 buttons, a save button and a cancel button.
The save button would then send the changed information along with the id of the row to another page, that has an sql query to update the database with the new information.
I have seen this but am not sure as to how to change it so that it has a cancel and save button instead, where clicking outside would be the same as cancel. My PHP Code for displaying the Table Cell in the table:
if (empty($row{Additional_Info})) {
$additional = 'No Additional Info';
}
else {
$additional = $row{'Additional_Info'};
}
echo '<td class="additional">' . $additional . "</td>";
Any help is appreciated.
Thank You