Jump to content

Recommended Posts

So this has been bugging me for a while.

 

I'm trying to create an ordering system for my work. Any product that needs to be restocked has to be typed into a text box. All entries are added to a list.

 

BUT...

 

Anything that's typed into the text box has to match with the product name in an existing table of data in the database. This is to prevent staff from ordering items that they shouldn't because fewer and fewer suppliers are willing to accept returns these days.

 

If it was free text I could easily create this, but I'm not sure how to go about having the character string entered into the text box compared to product names in a table?

 

Any help?

 

Thanks...

You would avoid the problem entirely by retrieving a list of permitted items from the database and present that to the user to pick from, typically via a select/option drop-down menu.

Edited by PFMaBiSmAd
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.