|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Dynamic Queryby qball (Beadle) |
| on Jul 10, 2001 at 18:05 UTC ( [id://95388]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.qball has asked for the wisdom of the Perl Monks concerning the following question:
I have a form that collects several values into an array[]. How do I create a dynamic query based on the values of the array[]? For example, say the values are company ids and match the company_id in table companies. I loop through the array[] as follows:
Let's say the basic query is as follows:
My array[], or as indicated in the while loop $assigned_to values are '10','15','20'. I now want the query to look something like the following:
Any thoughts on a way to approach this? qball~"I have node idea?!"
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||