Displaying image using php and JQuery
<p>I have a small photo gallery that is displaying images from the database however once the image is loaded it is suppose to be displaying on the right side of the gallery frame. but in this case it does not display i am using JQuery to construct the Gallery can anyone help me solve this problem.</p>

<pre><code>$(document).ready(function () {

    $(".galleryThumbnail a").click(function (e) {
        e.preventDefault();

        //update thumbnail
        $(".galleryThumbnail a").removeClass("selected");
        $(".galleryThumbnail a").children().css("opacity", "1");

        $(this).addClass("selected");
        $(this).children().css("opacity", ".4");

        //setup thumbnails
        var photoCaption = $(this).attr('title');
        var photofullsize = $(this).attr('href');

        $(".galleryPreview").fadeOut(500, function () {

            $(".gallery_preload_area").html("")
            // this is what is going to happen after the fadeout
            $(".galleryPreview").html("&lt;a  href='" + photofullsize + "' style=' background-image:url(" + photofullsize + ");'&gt;&lt;/a&gt;");
            $(".galleryCaption").html("&lt;p&gt;&lt;a href='" + photofullsize + "' title='Click to view large'&gt;View Large&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;")
            $(".galleryPreview").fadeIn(500);

        });
    });
});
</code></pre>

<p>it is being displayed on the page like this </p>

<pre><code>&lt;?php
$query     = "SELECT * FROM image WHERE hotel_id = {$hotel['hotel_id']}";
$image_set = mysql_query($query, $connection);
while ($image = mysql_fetch_array($image_set)) {
?&gt;                                                        
    &lt;a href=\"img/photos/&lt;?php   echo $image['image_url']; ?&gt;" 
    title="&lt;?php   echo $image['image_url'];    ?&gt;"&gt;
    &lt;img src="img/photos/&lt;?php  echo $image['image_url'];  ?&gt;" width="75" height="75"/&gt;
    &lt;/a&gt;           
&lt;?php
}
?&gt; 
</code></pre>

<p>to see the page in action please visit this site: 
<a href="http://clicktravelnstay.com/desti_list.php?details=19" rel="nofollow">http://clicktravelnstay.com/desti_list.php?details=19</a></p>
