A user signs up then the computer picks a random 9 digit number from 11111111-99999999, goes in to the database to make sure I doesn't exist already, and if it doesn't i give them that 9 digit number. This is what I have so far.
Code: Select all
if($cnvsn == $icnvsn) {
generate_vsn();
} else {
$nvsn = $cnvsn;
}
}
function generate_vsn()
{
$cnvsn = rand(1111111111, 999999999);
}