03.03.2018, 18:20
Is it your intention to keep the row in the database after deleting the house? This may be why once you restart the house are popping back up. The information is still in the database, so is getting reloaded.
Check out MySQL DELETE FROM. Also, I would still first check if the house ID passed to /deletehouse is valid before using it to delete from the database.
Check out MySQL DELETE FROM. Also, I would still first check if the house ID passed to /deletehouse is valid before using it to delete from the database.