03.05.2014, 03:14
set the `id` field to AUTO_INCREMENT. Then when you insert it will automatically go up by 1.
https://sampwiki.blast.hk/wiki/MySQL/R33#cache_insert_id
https://sampwiki.blast.hk/wiki/MySQL/R33#cache_insert_id