Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to generate unique alphanumeric 6 digit code through php myadmin

mysql> update DemoTable
set Value=LPAD(FLOOR(RAND() * 999999.99), 6, '0');
Query OK, 6 rows affected (0.15 sec)
Rows matched: 6 Changed: 6 Warnings: 0
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #generate #unique #alphanumeric #digit #code #php #myadmin
ADD COMMENT
Topic
Name
4+6 =