Skip to content
Advertisement

How do I search inventory by characters in the items name no matter if its uppercase or lowercase? [closed]

I have an inventory program that works but has one problem. My program lets you add, remove, update, search, and print inventory items, qty, and ID number. Search(option 4) needs to be able to search an inventory item by characters in its name. For example, if Oranges are in inventory, I should be able to type or and it can pull it up and display all the information about it including name, qty, and ID number.

The problem: Currently search only works if you type in the ID number. Question: how do I change over this search function without causing issues for my other program options. I will attach the full program, but the problem is in def search.

Code:

JavaScript

Advertisement

Answer

Add by parameter and send that along with your query.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement