Jump to content

Search for primary key and output all relating data


qwerty255

Recommended Posts

Hi all,

 

I was hoping someone could help me with something I wish to create.

 

I wish to creating something like a login page but instead of name and password, you use a 'Customer Number' which searches the 'Customer' database to see if the entered customer number exists, and if it does, redirect into the system to another page which outputs all the data relating to that customer number, e.g.

 

Customer number: 900800700

Customer Name: James May

Customer Purchase Date: 12/08/2012

Location: London, England

 

etc.

 

I want to get whatever has been entered into the box and return the data above and more, but have no idea how i'd go about doing this.

 

Any help that you guys could give would be lovely.

Link to comment
Share on other sites

I would recommend leave column id for primary key and treat column customer_number to store customer number. 

 

Add unique key so it must be unique. 

 

It would be lovely if you can show anything you have done so we can see further this issue.

 

Thanks

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.