Jump to content

PHP MYSQL id


woody79

Recommended Posts

i have a table with the primary key as id and i want the php script to insert values into the table but with a random 6 digit number. the problem i have is that if php randomly selects a number that is already in the table the values won't be entered. if youre wondering it is a confidentiality thing otherwise i would just use auto_increment

Link to comment
https://forums.phpfreaks.com/topic/49803-php-mysql-id/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.