Jump to content


New problem.. old problem fixed.


2 replies to this topic

#1 derek.sullivan

    Jedi In Training

  • Members
  • PipPip
  • 341 posts
  • Gender:Male
  • Location:Georgia
  • Interests:preaching, programming, music, friends, outdoors, moves, books

Posted 06 July 2007 - 02:42 PM

In my chat script, there is a select box to where you can select where you want your message to go. EX:


Send to: Room
Send to: User 1
Send to: User 2

Lets say I'm logged in as User 1, how would I remove my name from the option list, I would only be able to see other users and they can see my name along with other users? KNow what I mean? example again:

Logged in as User 1:

Send to: Room
Send to: User 2

Can someone PLEASE help me?

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 06 July 2007 - 04:06 PM

Well, since we don't have any of your code to work with, here's an example.
while($r = mysql_fetch_assoc($sql)){
	if($r['name'] != $_SESSION['name']){
		// display option
	}
}


#3 derek.sullivan

    Jedi In Training

  • Members
  • PipPip
  • 341 posts
  • Gender:Male
  • Location:Georgia
  • Interests:preaching, programming, music, friends, outdoors, moves, books

Posted 06 July 2007 - 09:34 PM

Thanks it worked!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users