Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-29-2008, 11:22 PM   PM User | #1
Dfraz
Banned

 
Join Date: Feb 2008
Location: USA
Posts: 61
Thanks: 15
Thanked 1 Time in 1 Post
Dfraz is an unknown quantity at this point
Username

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
Dfraz is offline   Reply With Quote
Old 02-29-2008, 11:51 PM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Why are you trying to make a forum when there are many already created forum scripts out there?
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 03-01-2008, 12:46 AM   PM User | #3
flynch01
Regular Coder

 
Join Date: Mar 2007
Location: England
Posts: 357
Thanks: 46
Thanked 22 Times in 21 Posts
flynch01 is on a distinguished road
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.
flynch01 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:17 PM.


Advertisement
Log in to turn off these ads.