Quote:
Originally posted by archael
Yep thats exactly what I tried.. It just ended up showing absolutely no results. Not even for the $sth that was already working. I'm gonna try it again see if I had any errors anywhere.
But what was weird is that the query that used to work well ended up showing nothing even if it stayed untouched.
All different variables too.
Jon
|
Try this:
create subroutine that gets the data you need and takes the one argument you need for your sites data and other sites data.
then do this (assuming you're returning an array):
Code:
my @mySitesData = &mySub('mySite');
my @otherSitesData = &mySub('otherSite');
That should work, because the scope of $sth is now within a subroutine.