skydivelouie
Programmer
I need an expert who can help me out with a precise answer...I can't seem to find an answer on the net or in other forums...Please Help...
This is what I'm trying to accomplish...
$Alpha = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
$a = rand(0,25);
$b = rand(0,25);
$c = $Alpha[$a];
$d = $Alpha[$b];
$e = rand(10000,99999);
$f = rand(100,999);
$ID = $c.$e.$d.$f;
This produces a random ID alpha/numeric...
What I'm wanting to do is have it solely numeric and sequential...for example starting from 100 and leading up to 1000 in increments of 1...
I can find all kinds of information about producing random numbers...which I've done successfully by accident and on purpose...
It would seem that something like this would work...but it doesn't...
$a = 100; $a++
$ID = $a;
This only seems to return the ID 101 over and over...it doesn't not increase in increments of 1 with each form submission...I would like the number to be unique and non-repeptitive...
Does anyone know how this can be done?...I am at my wits end...
Any help, advice or a point in the right direction will be extremely helpful...
Thanks
Skydive Louie
This is what I'm trying to accomplish...
$Alpha = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
$a = rand(0,25);
$b = rand(0,25);
$c = $Alpha[$a];
$d = $Alpha[$b];
$e = rand(10000,99999);
$f = rand(100,999);
$ID = $c.$e.$d.$f;
This produces a random ID alpha/numeric...
What I'm wanting to do is have it solely numeric and sequential...for example starting from 100 and leading up to 1000 in increments of 1...
I can find all kinds of information about producing random numbers...which I've done successfully by accident and on purpose...
It would seem that something like this would work...but it doesn't...
$a = 100; $a++
$ID = $a;
This only seems to return the ID 101 over and over...it doesn't not increase in increments of 1 with each form submission...I would like the number to be unique and non-repeptitive...
Does anyone know how this can be done?...I am at my wits end...
Any help, advice or a point in the right direction will be extremely helpful...
Thanks
Skydive Louie