Thank you, I bought that vacation rental script last year (plus modification) and tried to put it up (but it blew up in my face when I tried to figure out how to further customize it (i tried to use my login/register forms). I'm trying top get better at PHP and decided its best to do things the best way, was thinking of getting the knowledge base builder but im going to need to modify it (myself so I can try to understand it if i Ever need to change it). Also, I'm using the PDO thing to use prepared statements and can I use that on the script?
As far as showing the post details above the replies, the only way I know to do that is to perform another query. Heres the query to show the replies
SELECT mess.subject, mess.message_txt, mess.mess_id, mess.parent_id, mess.created, users.name
FROM messages AS mess
INNER JOIN users
ON users.id = mess.user_id
WHERE mess.parent_id = 3
GROUP BY mess.created
But cant figure out how to also select the post (attached is the messages table)
[ATTACH]5163[/ATTACH]
Thanks for your help...
messages_table.jpg