Abhijit Dutta Abhijit Dutta - 1 month ago 8
PHP Question

Cloud Zoom Issue

Here is the link - http://demo.crazewebconsultants.net/bag/product-listing.php

<img id="big_img" class="img-responsive zoom_01" src="site-admin/<?=$row['image']?>" data-zoom-image="site-admin/<?=$row['image']?>">

<script type="text/javascript">
$(document).ready(function(){
$('.img-responsive').click(function(){
$("#big_img").attr("src",$(this).attr("src"));
var img=$(this).attr("src");

$("#big_img").attr("data-zoom-image",img);
});
});
</script>


Here is my code. Please take a look on my code. I just want to change images with cloud zoom image also. Need some help.

Thanks in advance.

Answer

What means 'Sorting with pagination'?

When you get data from your database, let's say, using SQL, you may get already sorted data.

Something like SELECT * FROMTABLEORDER BYSOMETHINGASC