automatic call reference creation
| From: | Gawie Marais | Date: | Thu, 10 Jun 2004 09:20:41 +0000 |
| Subject: | automatic call reference creation | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-34699@lists.php.net to get a copy of this message | ||
hi all,
i need to create an automatic call reference. i though it would work using
the date as ccyymmdd and by adding a '001', '002', etc to the end.
now, i know how to format the date but how would i increment the 001, 002 at
the end... ? i understand that i would have to check back to the database to
check the last one used. but how... ?
alternatively is to just generate a random number, check it against the
database to see if it's not already used. if not use it. if its used
already, just create another one... ?
OR
do you guys have any laternative suggestions ?
Regards,
Gawie.