smdani
02-02-2005, 09:24 PM
I would like to build a SQL sentence where can get all postids from a thread, but no those who has been deleted.
I tried this:
SELECT postid FROM post WHERE ((threadid=$tid) AND (visible=1)) ORDER BY postid DESC")
But it keeps gettin me deleted posts, because they have visible=1.
Any help?
Thanks in advance!
I tried this:
SELECT postid FROM post WHERE ((threadid=$tid) AND (visible=1)) ORDER BY postid DESC")
But it keeps gettin me deleted posts, because they have visible=1.
Any help?
Thanks in advance!