PDA

View Full Version : Little logic


Sanady
27/02/2016, 12:24 PM
Hello everybody, I have problem with something, I created Load and save system for my house system which is using mysql, and now, house is loaded how do I create stock which will check which is house ID? How should I code it? I check few scripts but I don`t get it. Can anyone explain me a little bit?

Runn3R
27/02/2016, 12:31 PM
You should have a hID in your enum.

And also you should have an A_I row for the ID to save and automaticly get a higher value than the old one when creating a house.

You load your ID from MySQL

Sanady
27/02/2016, 04:12 PM
Ok, I load but how should I get index for my array?

Sanady
28/02/2016, 03:41 PM
Anyone?