https://alamkoding.blogspot.com/2019/10/cara-membuat-kode-otomatis-dengan-php-mysqli.html