Linking Html Table With Mysql Table
I have a table that displays data from a MySQL table. I have an extra column that adds a checkbox for each entry. Is it possible to link that column row with the other data in the
Solution 1:
Assuming you mean another column after the select list column titled 'change'. Add another table cell after the change colum with this...
echo "<td><inputtype="checkbox"name='fieldName[]'value="<?phpecho$row['emp_number']; ?>" ></td>";
After you've posted the form the $_POST['fieldName'] array will have the ids for the rows that have been clicked.
Try and make sure the $row['emp_number'] is from your tables primary key to make sure the value is unique.
Post a Comment for "Linking Html Table With Mysql Table"