Jump to content

Generating customer id's from the database


heshan

Recommended Posts

Hi all,

 

I want some help regarding my banking project. I have a customer registration form in my project.After successfully completion of the form users have to click on the "Open Account" button.Thereafter a customer id(Auto increment value) should be generated.It was stored in the database where other form details are also being stored. How can i call to this one by one customer id's??

 

Heshan,

Link to comment
Share on other sites

If you are creating a user / client ID automatically with the users table and then when creating a account you should query for the users log in name from the users table and store the Client ID and leave it in a variable that way when they goto create a account you can store the Client ID and a account id (which auto-increments).

 

That's a simple way but may not always be fully optimized for big traffic/usage.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.