1) { $pagination .= "
"; //previous button if ($page > 1) $pagination.= " previous"; else $pagination.= " previous"; //pages if ($lastpage < 7 + ($adjacents * 2)) //not enough pages to bother breaking it up { for ($counter = 1; $counter <= $lastpage; $counter++) { if ($counter == $page) $pagination.= "$counter"; else $pagination.= "$counter"; } } elseif($lastpage > 5 + ($adjacents * 2)) //enough pages to hide some { //close to beginning; only hide later pages if($page < 1 + ($adjacents * 2)) { for ($counter = 1; $counter < 4 + ($adjacents * 2); $counter++) { if ($counter == $page) $pagination.= "$counter"; else $pagination.= "$counter"; } $pagination.= "..."; $pagination.= "$lpm1"; $pagination.= "$lastpage"; } //in middle; hide some front and some back elseif($lastpage - ($adjacents * 2) > $page && $page > ($adjacents * 2)) { $pagination.= "1"; $pagination.= "2"; $pagination.= "..."; for ($counter = $page - $adjacents; $counter <= $page + $adjacents; $counter++) { if ($counter == $page) $pagination.= "$counter"; else $pagination.= "$counter"; } $pagination.= "..."; $pagination.= "$lpm1"; $pagination.= "$lastpage"; } //close to end; only hide early pages else { $pagination.= "1"; $pagination.= "2"; $pagination.= "..."; for ($counter = $lastpage - (2 + ($adjacents * 2)); $counter <= $lastpage; $counter++) { if ($counter == $page) $pagination.= "$counter"; else $pagination.= "$counter"; } } } //next button if ($page < $counter - 1) $pagination.= "next "; else $pagination.= "next "; $pagination.= "
\n"; } ?> diff($to)->y; $birthdate = date("d-m-Y", strtotime($birthdate)); }catch(Exception $e) { //$e->getMessage(); $birthdate="Not Available"; $age="Not Available"; } ?>
'" style="width:170px;height:250px;float:left;">
ProfileID:
 Name:
  BirthDate:
  Education:
  Job Occupation:
 Job Description:
  Religion:
  Cast:
  Marital Status:
 District:
'" />
'" style="width:170px;height:250px;float:left;">
ProfileID:
 Name:
  BirthDate:
  Education:
  Job Occupation:
 Job Description:
  Religion:
  Cast:
  Marital Status:
 District:
'" />
diff($to)->y; $birthdate = date("d-m-Y", strtotime($birthdate)); }catch(Exception $e) { //$e->getMessage(); $birthdate="Not Available"; $age="Not Available"; } ?>
'" style="width:170px;height:250px;float:left;">
ProfileID:
 Name:
  BirthDate:
  Education:
  Job Occupation:
 Job Description:
  Religion:
  Cast:
  Marital Status:
 District:
'" />
'" style="width:170px;height:250px;float:left;">
ProfileID:
 Name:
  BirthDate:
  Education:
  Job Occupation:
 Job Description:
  Religion:
  Cast:
  Marital Status:
 District:
'" />
diff($to)->y; $birthdate = date("d-m-Y", strtotime($birthdate)); }catch(Exception $e) { //$e->getMessage(); $birthdate="Not Available"; $age="Not Available"; } ?>
Profile ID:
Name:
Age:
Religion:
Cast:
Marital Status:
District:
'" />
diff($to)->y; $birthdate = date("d-m-Y", strtotime($birthdate)); }catch(Exception $e) { //$e->getMessage(); $birthdate="Not Available"; $age="Not Available"; } ?>
Profile ID:
Name:
Age:
Religion:
Cast:
Marital Status:
District:
'" />
diff($to)->y; */ $today = new DateTime(); list($BirthMonth,$BirthDay,$BirthYear) = explode("/", $birthdate); $from = date_create_from_format("n#j#Y",$birthdate); $to = new DateTime('today'); $age= (date("Y") - $BirthYear); if((date("Y") - $BirthYear)>100) $age= "Not Available"; echo "
"; echo "
"; echo "
Profile ID : ".$pid."
"; echo ""; echo "
"; echo "Name: ".$name."
"; echo "Age: ".$age."
"; echo "Religion: ".$religion."
"; echo "Cast: ".$cast."
"; echo "Marital Status: ".$status."
"; echo "District: ".$city."
"; echo "View Profile
"; echo "
"; echo "
"; echo "
"; echo "
"; } ?> diff($to)->y; */ $today = new DateTime(); list($BirthMonth,$BirthDay,$BirthYear) = explode("/", $birthdate); $from = date_create_from_format("n#j#Y",$birthdate); $to = new DateTime('today'); $age= (date("Y") - $BirthYear); if((date("Y") - $BirthYear)>100) $age= "Not Available"; echo "
"; echo "
"; echo "
Profile ID : ".$pid."
"; echo ""; echo "
"; echo "Name: ".$name."
"; echo "Age: ".$age."
"; echo "Religion: ".$religion."
"; echo "Cast: ".$cast."
"; echo "Marital Status: ".$status."
"; echo "District: ".$city."
"; echo "View Profile
"; echo "
"; echo "
"; echo "
"; echo "
"; } ?>

Our Success Stories! View All

Click Here To View Full Screen