loop over the PHP data Returned to jquery AJAX Call
<p>below is my $.ajax call to php</p>

<pre><code>$(document).ready(function() {
$('ul.sub_menu a').click(function(e) {
e.preventDefault();
    var txt = $(this).attr('href');
    $.ajax({
        type: "POST",
        url: "thegamer.php",
        data:{send_txt: txt},
        success: function(data){
            $('#container').fadeOut('8000', function (){
                $('#container').html(data);
                $('#container').fadeIn('8000');
            });
        }   
    });
});
}); 
</code></pre>

<p>my php code</p>

<pre><code>    if(mysql_num_rows($result) &gt; 0){
    //Fetch rows
    while($row = mysql_fetch_array($result)){

        echo $row['img'];

        }
}
</code></pre>

<p>I m getting this output </p>

<pre><code>images/man/caps/army-black.pngimages/man/caps/army-brown.pngimages/man/caps/army-grey.pngimages/man/caps/army-lthr.pngimages
</code></pre>

<p>these are basically image paths now how to loop over them in jquery and fit each image in image tag </p>

<p>any code will be useful</p>

<p>Plz Note I DONT NEED JSON</p>

<p>regards sajid</p>
