Hi dear friends
I have a confusing problem with my web site. I use one database table for different subdomains. like this:
MY DB TABLE:
Post_Table
id title bodytext year month day time cat
--- ----- ------------ ----- ---- ---- ---
1 ... ... 2005 05 06 12:20 blog
[B]2 ... ... 2005 05 07 13:30 blog[/B]
3 ... ... 2005 05 07 13:40 e-zine
4 ... ... 2005 05 07 15:50 e-zine
[B]5 ... ... 2005 05 08 12:01 blog[/B]
6 ... ... 2005 05 09 02:09 e-zine
7 ... ... 2005 05 12 15:19 e-zine
[B]8 ... ... 2005 06 25 13:13 blog[/B]
and like this DB table i use one table for my e-zine and blog. with "cat" i will show just e-zine or blog content in my pages.
Now my question is here:
How can i show "NEXT" and "PREVIOUS" titles for id=5 ?
this "NEXT" or "PREVIOUS" titles must be in the same "cat".
the result must show "TITLE" of id 8 and 2.
please help me to write correct QUERY .
thanks
😕 😕