Hm, still I am not completely sure.
What you could try to do is; You need a set of data from one table, and based on that set you build a new query. Then you'd nest the while's
while($row1 = mysql_fetch_array($result1) )
{
// any output you'd want
while($row2 = mysql_fetch_array($result2) )
{
// Output based on query 2
}
}
It would be a bit easier to try to answer the question if I could understand what output you try to reach...
I am not sure whether you could combine the two outputs: The output arrays could (and most likely are!0 be of different length, which would cause conflicts.
But again: Explain the output you try to get, and maybe I have some ideas. I see url's and images.. Links to images??
J.