I used a paging code in my index.php and worked properly, and did not work properly for navigating to categories.
In index.php the following code:
$qyury = "select * from content";
In category.php the following code:
$query = " select * from content where CCat_ID = ".$_GET["id"];
To get more clear about my problem, the page I'm taking about is linked below with more explain, please help me!