03.03.2018, 18:22
Quote:
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. |
And yes I know, about valid house id. I ignored it for now. I will change it later.