jacktripper
Programmer
I've got a database which I'm trying to pull information from various table and various indexid's etc etc. I've scripted a Perl program to get email addresses, a message subject, and a message body. However, it ends up re-inserting info from the 1st query.
For example, the results look something like this:
email address 1
email address 2
email address 3
(new query for subject results in...)
email address 1
email address 2
email address 3
subject
(new query for message results in...)
email address 1
email address 2
email address 3
subject
message
All I really need are the last 5 lines. How can I do multiple queries without this "build up" of information? Is there a way to purge the previous query before starting another one?
For example, the results look something like this:
email address 1
email address 2
email address 3
(new query for subject results in...)
email address 1
email address 2
email address 3
subject
(new query for message results in...)
email address 1
email address 2
email address 3
subject
message
All I really need are the last 5 lines. How can I do multiple queries without this "build up" of information? Is there a way to purge the previous query before starting another one?