I have a table in PHP where I can modify its cells, then click a Save button and it adds them to a mysql table.
But what I want to do is to send that modified row to the bottom of the table. So the next time the user logs in, that row appears at the very bottom.
To be honest, I can't tell why this is useful or relevant, but boss orders are boss orders.
I've been looking for examples but I can't find anything, like it's not a very usual thing to do. Any help will be very useful.
UPDATE:
echo "<form name='form1' method='post' action='actualizar.php?address_id=".$row[address_id]."'>";
echo "<tr>";
echo "<td>".$contador++."</td>";
echo "<td>".$row[address_1]."</td>";
echo "<td>".$row[address_2]."</td>";
echo "<td>".$row[city]."</td>";
echo "<td>".$row[postcode]."</td>";
echo "</form>";
The table is filled with data from a mysql table.
You can try to accomplish it by adding a an updated_at
DATETIME field to the MySQL table, which you update whenever a user saves the changes. Then in PHP, execute a query where you order the results by that date.