umm first of all, if you have a field called code in database, make sure its type is varchar instead of int, since the latter only accepts numbers. You will need to copy/paste the function passgenerator() into your functions.php file, and then call it whenever you want to generate an alphanumeric code.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
|