chaitu11 0 Junior Poster

i want to group all photos in slideshow depending on description(topic) as show in db image.

if description changes another slideshow should be displayed with that description relates photos.how to write such loop.

<?php
$sql="SELECT * FROM activities WHERE cat='PRABHUDDHA BHARATH SEMINARS' GROUP BY descr ";
$res=mysqli_query($con,$sql);

while($row=mysqli_fetch_array($res))
{
?>
<div>
<?php
echo "<img u='image' src=admin/$row[photo] />" ;
echo "<img u='thumb' src=admin/$row[photo] />" ;

?>
</div>
<?php
}
?>