SA-MP Forums Archive
get field name/number with data? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: get field name/number with data? (/showthread.php?tid=237686)



get field name/number with data? - THE_KNOWN - 10.03.2011

hello i use g-stylezzz mysql plugin. now i have a table with fields named 1,2,3,4 etc...
now the prob is if someone changes their name, i want it to be changed in this table too. but idk in which field his/her name is in. so how do i do it?


Re: get field name/number with data? - Calgon - 10.03.2011

You should name fields by their usage, i.e: 'Username' and 'Password' instead of 1, 2, 3, 4, etc. I can't see what fields are which without your database dump which is going to be a mess because you've decided to make some retarded scripting decisions.


Re: get field name/number with data? - THE_KNOWN - 10.03.2011

no its for orgs where i store the memebers name


Re: get field name/number with data? - Calgon - 10.03.2011

Yes, you shouldn't use NUMBERS as field names, field names, the name suggests what it's supposed to retain.