HOW DO I OUTPUT THE AUTHOR NAME?
Posted: Wed Feb 07, 2007 6:52 pm
Recently I'm designing an internet forum using PHP.
I'm using two tables for my forum one is called (AUTHOR)with the fields (AUTHOR_ID, AUTHOR_NAME , AUTHOR_PASS) in which registered users are stored and another called (FORUM) with the fields (SUBJECT,BODY,NAME,DATETIME) in which the posts are stored.
After an author logs into the forum with his (id) and (password) he can either post a new topic or view topics.
My question: what is the code I need to output the name of the author who posted the topic?
To make it more clear in devnetwork forum you login with your username and password into the forum and when you post a new topic you need only to write the subject and message body(no need to write your name), after that in the forum's page you find that your topic is posted including the author name so how is that done?