Now here is the quesry i am working on
mysql_query("select count(*) from table");
Basically, i have a table with a ciolumn for categories. Without makign anew page, i am using the if function to list all the rows of a particular column. Its going on alright but when it comes to paging the results, it returns the total pages of the entire table and not that particular column and if you clikc on any page number, it moves to a page with all the categories instaead of remaining on the same category. Basically i am trying to do something on these lines
mysql_query("select count(*) from table where cat=$cat");
the cat is variable and can be defined as $_GET, but its not working. Can anyone help me please? I need to paginate my results wiuth respect to columns in the table.
mysql_query("select count(*) from table");
Basically, i have a table with a ciolumn for categories. Without makign anew page, i am using the if function to list all the rows of a particular column. Its going on alright but when it comes to paging the results, it returns the total pages of the entire table and not that particular column and if you clikc on any page number, it moves to a page with all the categories instaead of remaining on the same category. Basically i am trying to do something on these lines
mysql_query("select count(*) from table where cat=$cat");
the cat is variable and can be defined as $_GET, but its not working. Can anyone help me please? I need to paginate my results wiuth respect to columns in the table.




