ok firstly you should get a sql syntax error, saying something like this...
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10, 10' at line 1
$limitvalue = $page $limit - ($limit);
$query = "SELECT FROM job_post LIMIT $limitvalue, $limit";
$limit has been set to 10, but $page hasnt been set, therefore
$page $limit - ($limit) is the same as saying 0 10 - 10, because of bodmas this is (0 * 10) - 10, thats why you get -10 in the sql command.
before you run the above query place this code
<?php
if (!empty($_GET['page'])) {
$page = $_GET['page'];
}
else {
$page = 1;
}
?>
as for the previous and next links.
for some reason the $page-- and $page++ isnt working, so just change them to $page - 1 and $page + 1
$pageprev = $page - 1;
$pageprev = $page + 1;
and in the code for your PREV link you have missed out a ? after $PHP_SELF
echo("<a href=\"$PHP_SELF&page=$pageprev\">PREV".$limit."</a> ");
should be
echo("<a href=\"$PHP_SELF?&page=$pageprev\">PREV".$limit."</a> ");
hth