Dillon Posted November 22, 2009 Share Posted November 22, 2009 Hello, I created a section on my website where users can log in. After they are logged in, they are sent to a homepage, which has a section that displays the other users online. Is it possible to create in php, or javascript, etc. to have when the user hovers over a username, a box pops up and shows their profile information? I pasted pictures below to help show what I am describing. Thanks for any help, I greatly appreciate it [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
Cardale Posted November 22, 2009 Share Posted November 22, 2009 It is most likely css. Just search on that. Quote Link to comment Share on other sites More sharing options...
Dillon Posted November 22, 2009 Author Share Posted November 22, 2009 Thanks for the reply! but I was wondering about how to pull the information from the database, so it changes depending on the user that you are hovering over. -Dillon Quote Link to comment Share on other sites More sharing options...
Cardale Posted November 22, 2009 Share Posted November 22, 2009 If you know how to use the SELECT feature then just put it in a while loop. This is the easiest way, but this is assuming your using MYSQL. Quote Link to comment Share on other sites More sharing options...
Dillon Posted November 22, 2009 Author Share Posted November 22, 2009 Yep I am using MySQL, this is what I tried putting in the section, but it didn't load, do you have any other suggestions? Sorry, I am new with php. :-\ while ($onlinename=true) { echo "this is a test"; echo $onlinename; } ?> There is nothing significant about the code I did, it should just display "this is a test" if online is true, but it didn't work, do I have the syntax right? Thanks, -Dillon Quote Link to comment Share on other sites More sharing options...
Cardale Posted November 22, 2009 Share Posted November 22, 2009 http://php.net/manual/en/control-structures.while.php Good examples here. Quote Link to comment Share on other sites More sharing options...
FaT3oYCG Posted November 22, 2009 Share Posted November 22, 2009 this is more css than java, also the second question is php based mysql so you should probably post it in that section, if you search for drop down navigation menus on google then you can use them as an example so that you can create the effect that you require using the css as a base to learn from. Quote Link to comment Share on other sites More sharing options...
Dillon Posted November 23, 2009 Author Share Posted November 23, 2009 Oh ok Thanks for the replies, I will mess with it tomorrow, and try to get it to work. -Dillon Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.