View Full Version : Username

03-01-2008, 12:22 AM
Hey. I'm making a forum and when you view the post it will show the username details which is selecting from the database.

I don't know hwo to make it get only ONE and the right user who posted the thread/reply.
How can I do this?

Right now if I select it from the database it will show All of the users when really it should show only the user who posted the thread/reply.


03-01-2008, 12:51 AM
Why are you trying to make a forum when there are many already created forum scripts out there?

03-01-2008, 01:46 AM
First off, when the user posts store the user that posted in the post entry. Then when you are getting the post entry, you just find out whats inside the posted user entry and do for example:

"SELECT * FROM `users` WHERE `Username` = '$sqlResult[USERNAME]'"

Thats how i'm doing it for the forums i'm making, but... theres probably a better way.