Working with multiple rows from SQL
Hello,
We use Issuetrak software for helpdesk currently. When someone leaves a voicemail, it creates a ticket and notifies the technician, but it does not attach the voicemail .wav file. I created a script to do this, and it works great if there is only one result in the last 5 minutes. If there is more than one, it either errors out, or only sends one, or sends the same one twice, can't remember, but it is obviously because of how I handle the rows.
Please help?
Thanks you :)
*Edit, changed to pastebin from pastiebin
12 comments · 86% upvoted · other discussions
Maybe you could put a foreach loop on the results variable. You would need to modify the downstream variable names.