Mave
Active member
Trying to get the number of posts within a node, but the code below isn't working. I'm 99% sure the fault lays with "thread_node_id", what should I replace this with?
Also is there documentaiton somewhere of the entire db structure?
Code:
SELECT COUNT(*) FROM xf_post WHERE thread_node_id = 132 AND xf_post.message_state = "visible"
Also is there documentaiton somewhere of the entire db structure?