I've asked this question on the database board but I'm not sure if its mainly to do with SQL or PHP so I'm asking on this board as well...

1. Firstly I want to be able to do a search, for instance search for only posts within a certain category (this would dependent on the SQL query I'm guessing) and then cycle through only these....

2. My viewpost.php form is also passed a postid (eg. viewpost.php?postid=100) and I thought to go back back n forwards just send post=99 or post=101 etc. However this might not be such a good idea since what if post 99 or 101 didnt exist? Is there a better method to do this?

Thx