mysql id
#2

Using MySQL's AUTO_INCREMENT.

Also, I don't recommend relying on the database vehicle IDs very much because you might want to delete some vehicles from the database at one point and so on. In such cases, an empty ID will be left, so the IDs can go like 1 - 2 - 4, or similar.

Store the vehicle's database ID in an array instead.
Reply


Messages In This Thread
mysql id - by Dan. - 18.05.2012, 16:32
Re: mysql id - by AndreT - 18.05.2012, 16:35
Re: mysql id - by Dan. - 18.05.2012, 16:40
Re: mysql id - by ProjectGANTON - 18.05.2012, 16:47

Forum Jump:


Users browsing this thread: 1 Guest(s)