sync2007 Posted February 8, 2007 Share Posted February 8, 2007 Recently I'm designing an internet forum using PHP. I'm using two tables for my forum one is called (USER)with the fields (USER_ID, USER_NAME , USER_PASS) in which registered users are stored and another called (FORUM) with the fields (SUBJECT,DETAIL,NAME,DATETIME) in which the posts are stored. After a user 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 phpfreaks 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 topic details(no need to write your name), after that in the forum's page you find that your topic is posted including the author's name so how is that done? Link to comment https://forums.phpfreaks.com/topic/37561-what-is-appropriate-code-for-output/ Share on other sites More sharing options...
fert Posted February 8, 2007 Share Posted February 8, 2007 look into sessions or cookies Link to comment https://forums.phpfreaks.com/topic/37561-what-is-appropriate-code-for-output/#findComment-179605 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.