Well, it wasn't exactly what I meant. I wanted to know how to create the first account in my system. You know, when you get the script from me and want to install it on your server, you have to have the first account (admin account) too, or you can never make a new account! I wasn't sure whether I should keep the mysql command in the list of all my mysql queries that when you run them, you get your admin account created or not. I asked one of my friends and he said it's just ok, you should do it.
Well, this one is solved I suppose, but now that you said it, let's ask that question too! You said in case a user forgets his password, I should make a new one and send it to his email. Ok, that's fine. But then I have that "Forgot your password?" link in my login page, that anybody can go to and enter a user name and asks for the new password. Of course they can't get that password if they don't have the password of my client's email, but they can keep changing his password and drive him crazy! What I thought is that not only I should ask for the person's user name, but I should also ask for him email. So, if he's the right person, he knows his own email. And then in my app I compare the entered email with the one that he has entered in his account (when he was registering) and only if they match I change the password and send it to that email address. Also if the person who is asking for a new password, enteres a wrong email address, I do NOT notify him and always prompt him a success message. What do you think? Is a good approach or what?