[MySQL] Update through a function
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
This is fine if you want to update one thing at a time, but I have a feeling that you're going to list them beneath each other and in that case it's a very bad thing to do. You may want to check the ORM functions 'cause that seems pretty much like what you're trying to achieve.
I would be using it 'on-change', for example, the admin changes the faction's name so:
PHP код:
UpdateField("factions""faction_name"FIELD_TYPE_STRING"New Faction Name""faction_id"g_Faction[factionid][ID]); 
I also thought about ORM but isn't the method I'm trying to do would be faster? Because when you use orm_save it updates the entire player's fields and not the field(s) that has been changed.
Also if I'll be using ORM, I would also use standard queries (tquery/pquery), so using those together with ORM would be okay?

Thank you for your help!
Reply


Messages In This Thread
[MySQL] Update through a function - by Itzhak E. - 06.02.2015, 23:45
Re: [MySQL] Update through a function - by Vince - 07.02.2015, 00:27
Re: [MySQL] Update through a function - by Itzhak E. - 07.02.2015, 00:46

Forum Jump:


Users browsing this thread: 1 Guest(s)