...

View Full Version : Username



Dfraz
02-29-2008, 11:22 PM
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.

Thanks

_Aerospace_Eng_
02-29-2008, 11:51 PM
Why are you trying to make a forum when there are many already created forum scripts out there?

flynch01
03-01-2008, 12: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum