$Pagename=basename($_SERVER['PHP_SELF']); ?>
$sel_doctor_name = mysql_query("SELECT * from doctor_profile where status='1' order by sorting_order asc limit $offset,$entries_per_page");
$tot_doctor_name = mysql_num_rows($sel_doctor_name);
if($tot_doctor_name >0)
{
$i=0;
while($fetch_Doctor_details = mysql_fetch_object($sel_doctor_name))
{
$i=$i+1;
$image_upath = $fetch_Doctor_details->image_upath;
$gender = $fetch_Doctor_details->gender;
$file_upath = $fetch_Doctor_details->file_upath;
$large_image=eregi_replace('doctor-profile/','',$image_upath);
if($image_upath!='')
{
if(file_exists('uploads/doctor-profile/300-'.$large_image))
{
$thumbnail_image='uploads/doctor-profile/300-'.$large_image;
}
else
{
$thumbnail_image='uploads/doctor-profile/'.$large_image;
}
}
else
{
$thumbnail_image='';
}
?>
} } ?>
if($num_rows ==0) { echo ' No Data Found!!!';} if($num_rows >12) { echo $pagination;} ?>