I am sorry. I never should have written anything at home. I have a very simple task.
Step 1: Select a list of id's and load into an array. Don't hard code because the list may change.
Step2: Select data for a specific id by passing a single id from the array index to the sql statement.
Step 3: Email the data to a specific id.
Currently, I perform the following:
Step 1: Select data for a group of id's. The data is hard coded for a specific group.
Step 2: Email data to the group of id's.
Note: When I hard code the data, I have to repeat the process for each group.
I am trying to select a list of distinct id's and load them into an array. Iterate through the index and select data for a specific id. And email the data to a specific id. I am sorry if that is not clear. The hard coded group email process works. In terms of the dynamic select...As I iterate throught the array, it prints and emails the correct id, however the select only returns the first index in the array. Again from your tone, it was a mistake to send this at home without all the info I needed. I understand if you don't want to help...but I really need your help...I write sql all day...not perl...This dynamic process would be all the help I need. Will you help me?...Thanks, Cory
In reply to Re^6: SQL queries using dynamic array
by cocl04
in thread SQL queries using dynamic array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |