What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-01-30 14:30:39
php generate unique id for mysql
A programmatic way can be to: add a UNIQUE INDEX to the field generate a random string in PHP loop in PHP ( while( ! DO_THE_INSERT ) ) generate another string Note: This can be dirty, but has the advantage to be DBMS-agnostic Even if you choose to use a... Add solution