setup your scipt to accept the variable $emp_id to lug into your SQL query.
<?
$emp_id_plus = $emp_id + 1;
$emp_id_minus = $emp_id - 1;
echo "
<a href=\"$PHP_SELF?emp_id=$emp_id_plus\">go forward</a>
<br><br>
href=\"$PHP_SELF?emp_id=$emp_id_minus\">go back</a>
";
?>
If there are hole in the sequence (1, 2, 3, 5, etc...) then I would add some conditional logic to add or subtract numbers from the $emp_id to get the correct next/prev numbers.