Q:

How to show 5 post each page with next & previous button feature?

I have a page named 'job.php', currently this page is showing all posted job. But now I want to show only 5 latest posts. And if anyone want to check the previous posts, they can click next button thus more 5 posts will be seen. There should be a previous button too. 
Following is my code:
$result1 = mysql_query("SELECT * FROM job ORDER BY ID DESC");
$num_row = mysql_num_rows($result1);

while($row1 = mysql_fetch_array($result1)){
     $cat=$row1['Category'];
     $title=$row1['Title'];
     echo "Job field: $cat<br/> Title: $title<br/>";
}

N:B: It's not pagination. I don't want to show page numbers, just want to show next & previous button.

A:

There are 100s of articles available on the Internet

Create Awesome PHP/MYSQL Pagination
PHP / MySQL select data and split on pages

If you want to do on your own:

Use LIMIT keywords in your query.
Pass the page and the multiplier to the LIMIT.

Some code
<?php
  $limit = 5;
  $start = (int)(($page - 1 ) * $limit);
  $page = mysql_real_escape_string($_GET["page"]);
  $query = "SELECT * FROM `table` LIMIT $start, {(int)$page + $limit}"
?>

