well i made some changes on my artworks.php i guess few things were missing.
$maxRows_WADAartworks = 5;
$pageNum_WADAartworks = 0;
if (isset($_GET['pageNum_WADAartworks'])) {
$pageNum_WADAartworks = $_GET['pageNum_WADAartworks'];
}
$startRow_WADAartworks = $pageNum_WADAartworks * $maxRows_WADAartworks;
mysql_select_db($database_con1, $con1);
$query_WADAartworks = "SELECT * FROM artworks ORDER BY `position` ASC LIMIT 40";
$WADAartworks = mysql_query($query_WADAartworks, $con1) or die(mysql_error());
$row_WADAartworks = mysql_fetch_assoc($WADAartworks);
$totalRows_WADAartworks = mysql_num_rows($WADAartworks);
if (isset($_GET['totalRows_WADAartworks'])) {
$totalRows_WADAartworks = $_GET['totalRows_WADAartworks'];
} else {
$all_WADAartworks = mysql_query($query_WADAartworks);
$totalRows_WADAartworks = mysql_num_rows($all_WADAartworks);
}
$totalPages_WADAartworks = ceil($totalRows_WADAartworks/$maxRows_WADAartworks)-1;
artworks.php is attached. but pagination is not visible on the page