$select_category=mysql_query("SELECT * from news where product_category_name ='$cat_id' and status='1' order by sorting_orders asc limit $offset,$entries_per_page");
if(mysql_num_rows($select_category)>0) {
?>
} else{ echo ' No Data Found!!!'; }?>
while($rows_values = mysql_fetch_array($select_category)) {
$product_id = stripslashes($rows_values['id']);
$product_category_name = stripslashes($rows_values['product_category_name']);
$title = stripslashes($rows_values['title']);
$relt_img_min = stripslashes($rows_values['image_upath']);
if($relt_img_min !='')
{
$get1=explode('common-news-images/',$relt_img_min);
$img_thumbnail='uploads/common-news-images/'.'300-'.$get1[1];
?>
} } ?>
if($num_rows ==0) { echo ' No Data Found!!!';} if($num_rows >21) { echo $pagination;} ?>