HAPPY NEW YEAR TO EVERYBODY!!!
I hope not many of you had to start the New Year by asking for help. Here I go though.
I need to assign a unique number to every newsletter subscriber e.g: 0001, 0002, 0003 and so on. The PHP4 script must be able to check for the next available number in the database and then assign it to the subscriber.
For example, the database name is “MYDATA” and the table with subscriber details is called “subscribers”. The column where I want to store the unique number is called “uniq_id”.
If somebody wishes to subscribe to my newsletter, the script will check for the next available (not random!!!) number and then displays it. I can take it from there. I just don’t know how to check the column for the number availability and then make it use the available number.
I am using PHP4 and MySQL 5. Can somebody please write the simplest possible script that would work?
Many thanks.
__________________
THE FORCE is with me at last! All I need now is some TALKUPATION ;)
|