Problems in House System
#5

Quote:
Originally Posted by Grim_
View Post
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.
My intention is to keep the row in the database and simply change HouseStatus to 0 if it is deleted and do not load it again.

And yes I know, about valid house id. I ignored it for now. I will change it later.
Reply


Messages In This Thread
Problems in House System - by JaskaranSingh - 03.03.2018, 18:09
Re: Problems in House System - by Grim_ - 03.03.2018, 18:14
Re: Problems in House System - by JaskaranSingh - 03.03.2018, 18:17
Re: Problems in House System - by Grim_ - 03.03.2018, 18:20
Re: Problems in House System - by JaskaranSingh - 03.03.2018, 18:22

Forum Jump:


Users browsing this thread: 1 Guest(s)