Bugs with "Pop Images like Google Images" post made earlier
<p>Please check this post:</p>

<p><a href="http://stackoverflow.com/questions/7411393/pop-images-like-google-images#answer-7412302">Pop Images like Google Images</a></p>

<p>I was working with the codes in this post by "Roko", but I am getting a bug in the same. When you arrange the code to display your gallery, all the images of the gallery are arranged nicely but the link added with the image will be same for all.</p>

<p>For example, according to the algorithm below (not using any html or css formatting...) if there are some images in your album is such a order such that</p>

<pre><code>for($i=0;$i&lt;10;$i++)
{
    echo "&lt;a href='image_url' &gt;" . "&lt;img src='image_url' /&gt;" . "&lt;br/&gt;&lt;span&gt; Image Name &lt;/span&gt; &lt;/a&gt;"
// image_url = next_image_url : I will change the image url for displaying the next url.
}
</code></pre>

<p>But, in this case the text in the &lt;span&gt; gives the correct url where as all the images on the page will give you the url of the first image. Is it a bug or something else. I am using MySql database to fetch the images of the gallery.</p>
