I'm pulling an xml file from a url and extracting a url from within that data.
I take that url and use it as a GET variable on another url that I pull more xml data from and I pull an image url from this 2nd xml then I echo the image.
Problem is while I'm looping through the first set of data the call to get the image url isn't finished before the next iteration of the loop happens so I get a lot of images with no src=""
Any ideas on how to make the loop wait for the data fromt he 2nd xml call to finish before continuing?