Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a 4 digit random code

Status
Not open for further replies.

vvjy2k

Programmer
Aug 9, 2004
1
DE
Hey guys,

i got a question that bothers me quite a while,
been looking everywhere but found no answer
and of c. no code snippets or ideas....

My idea is to automate this procedure for better performance...

Can anybody in here tell me if its possible to auto create
a 4 digit randomly code 1st digit alpha 2nd -4th numeric
that gets looked up in the db if its there new code is generated
if its not give the code back to my php proggy?
I would like to do it in PostGreSQl with a stored procedure
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top