$query = "SELECT categimg_id, name, slug FROM duoin_categimg_gallery where categimg_id='14' ORDER BY categimg_id ASC ";
$result = mysql_query($query);
while ($therow = mysql_fetch_array($result)){
$idsc=$therow['categimg_id'];
$ids_catalog=$therow['name'];
$ids_productname=$therow['slug'];
$sqlw=mysql_query("SELECT * FROM duoin_img_gallery where categimg_id ='$idsc' ORDER BY img_ids DESC");
while($rw=mysql_fetch_array($sqlw))
{
$idslider=$rw['img_ids'];
$prodisimg_names=$rw['name'];
$prodisimg_thumb=$rw['post_thumb'];
$prodisimg=$rw['post_images'];
echo'
'.$prodisimg_names.'
';
}
}
?>