Internal ID and MySQL auto increment ID
#5

Thank you Vince and PPC!!!

I followed your suggestion PPC and here is how I edited it!


Note that I translate my stuff to english...

pawn Код:
BizInfo[i][IDBiz] = cache_get_field_content_int(i, "IDBiz"); // This is loaded first
// then are going other codes such as
BizInfo[i][Type] = cache_get_field_content_int(i, "Type"); // this was changed to
BizInfo[BizInfo[i][IDBiz][Type] = cache_get_field_content_int(i, "Type"); // this
Now, I changed all "i" to "BizInfo[i][IDBiz]"
It's working fine now, eggzactly as I wanted to

I have some questions.

Do I have to change the other "i" -> (i, "Type") or leave it as is?
Is that all I have to do? I did that thingy on inserting, updating is also fine.

@Luis - Trust me, if you don't want separate IDs , use this method!
Reply


Messages In This Thread
Internal ID and MySQL auto increment ID - by Sime30 - 22.01.2015, 19:45
Re: Internal ID and MySQL auto increment ID - by Vince - 22.01.2015, 20:30
Re: Internal ID and MySQL auto increment ID - by PowerPC603 - 22.01.2015, 20:59
Re: Internal ID and MySQL auto increment ID - by Luis- - 22.01.2015, 21:30
Re: Internal ID and MySQL auto increment ID - by Sime30 - 22.01.2015, 22:18

Forum Jump:


Users browsing this thread: 1 Guest(s)