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
}
?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.