Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6960709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:26:11+00:00 2026-05-27T15:26:11+00:00

We are working on an internal inventory system. When a user orders and item

  • 0

We are working on an internal inventory system. When a user orders and item from a vendor and puts in the order information, I want the users input of brand, model, SKU, etc to be free form input, then when submitted, it compares all of those values to items already in the inventory database. First it would compare the SKU if found then its a direct match. If not, then it moves on to comparing model and brand and asks the user to confirm they are the same item.

Does anyone have any ideas on best methods for accomplishing this? I cant even think of what this would be called to google it.
Code examples / resources would be appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:26:12+00:00Added an answer on May 27, 2026 at 3:26 pm

    Assume your form field is named “orderInfo”, and has the value “12345 Acme Gadget” (where 12345 is a valid SKU)

    <cfquery name="checkSKU" datasource="inventoryDSN">
    SELECT 
     * 
    FROM 
     Inventory 
    WHERE 
     cast(SKU as varchar) IN (<cfqueryparam value="#ListChangeDelims(form.orderInfo, ' ', ',')#" list="true" cfsqltype="cf_sql_varchar">)
    </cfquery>
    
    <cfif checkSKU.recordCount>
      <!--- We have a match! --->
    <cfelse>
    
    <cfquery name="checkOthers" datasource="inventoryDSN">
    SELECT 
     inventory.*
    FROM 
     Inventory 
    WHERE 
     1=0
     <cfloop list="#form.orderInfo#" delimiters=" " index="searchTerm">
    OR brand LIKE <cfqueryparam value="%#searchTerm#%" cfsqltype="cf_sql_varchar">
    OR model LIKE <cfqueryparam value="%#searchTerm#%" cfsqltype="cf_sql_varchar">
    </cfloop>
    </cfquery>
    
    <cfif checkOthers.recordCount IS 1>
      <!--- have a solid match --->
    <cfelseif checkOthers.recordCount GT 1>
      <!--- have some ambiguity, present user with choice among returned results --->
    <cfelse>
      <!--- No match found, return error message --->
    </cfif>
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on internal PHP application where users login only from our network
I'm working on some upgrades to an internal web analytics system we provide for
I want to know the internal working of .net when we doing any thing
I am new to NHibernate and need some information regarding the internal working of
I'm working on a website with an internal and an external section. The users
I am building an inventory tracking system for internal use at my company. I
I'm working on an internal project for my company, and part of the project
I'm working on a internal web based tool for my company. Part of this
I am working on an internal web based application for storing and cataloging photos.
I'm currently working on an internal sales application for the company I work for,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.