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,

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.