Forum Moderators: coopster & phranque

Message Too Old, No Replies

Can anyone possibly heeelp?

         

JimChan

3:35 pm on Jan 30, 2003 (gmt 0)

10+ Year Member



Can someone help please...
I need a script that can do the following. Does anyone have one that can do this?

1) on the 'click' of a button to collect a 10 digit number from a database file (maybe csv?) deliver it to the viewer's screen, at the same time deleting it from the database (basically this is a 'pin number')
2) either the script could generate a 10 digit number from a start number of say i.e '1020030045' or the numbers could already be listed in a file on the server where they are drawn from.
3) for security reasons the number on the database file would need to be 'flagged' so it cannot be used again or deleted automatically.

Verry grateful for any help/direction
Thanks
JimC

andreasfriedrich

3:45 pm on Jan 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com] Jim.

Be sure to read Marcia`s WebmasterWorld Welcome and Guide to the Basics [webmasterworld.com] post.

Have a look at any implementation of the md5 algorithm(Perl [perldoc.com]/PHP [php.net]). It will be more secure than your numbers approach.

Andreas

JimChan

4:10 pm on Jan 30, 2003 (gmt 0)

10+ Year Member



Thank you for the direction to look Andreas!
mmmmmm...it looooks a bit complicated for me to implement, from briefly looking at what you suggested it seems to do the required job...but being a total novice (with a client breathing down my neck!) I don't think i'm up to creating the necessary!
No other suggestions I suppose? :-)

andreasfriedrich

4:17 pm on Jan 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, itīs really hard to suggest a ready made script since it would need to interface with the rest of your application (What is it btw. Knowing this might help.). Your best bet would probably be to look at hotscripts or some other scripts site for a similar application to yours and adapt the code from there. Hopefully somebody else will have any suggestions.

Andreas