Hello,
<form>
</form>
Editing and updating a table within a form is no problem
But editing two tables in one form is ok but how do we update the database table;
if ($stmt->rowCount() > 0) {
$messages[] = "Successfully Updated";
} else {
$errors[] = "Update Failed Because No Changes Made to Data";
}
The first table is the main table, where a lot of data is organized.
The other second table is editing only one data 0/1 yes/no
If there is a change in the data of both tables, there is no update problem.
However, only the first main table may need to be edited or just the other second table may need to be edited
What to do in such a situation?