I have built a GUI in Tk that is supposed to take user input and search an MS SQL database. I am about 3/4 complete, however, I cannot seem to get the script to search for what the user wants. I need a way to actually assign what is entered into the Entry box (or multiple Entry boxes) to a variable(s) and then have the script search the SQL for that and that only. As of right now, whichever Entry box the user types something in, the script merely fetches EVERYTHING in that row and prints to screen. (nearly 5000 items each). Though there are multiple entry boxes, I will post what one looks like right now:
There are 11 more of the same types of entry boxes above, each for different queries.
How do I take the user input in these boxes and somehow get it into a SQL query so that it will return exactly what they ask for instead of fetching the entire row?
Do I give FetchRow() and argument?
Thanks for any help in advance.
Code:
$ZWIDGETS{'Entry1'}=$ZWIDGETS{Frame2}->Entry(
-width => 60,
-textvariable = \$Location,
)->grid(
-row => 2,
-column => 1,
-sticky => 'nw',
-pady => 5,
);
There are 11 more of the same types of entry boxes above, each for different queries.
How do I take the user input in these boxes and somehow get it into a SQL query so that it will return exactly what they ask for instead of fetching the entire row?
Do I give FetchRow() and argument?
Thanks for any help in advance.