skatermike21988 Posted October 4, 2006 Share Posted October 4, 2006 Ok, i have a mysql query with a loop, and with what is displayed i am wanting a dynamic tooltip to be displayed, well i can get the tooltip to display but for every thing that is displayed from the query i am only getting the first to be pulled. for example:say first to be shown is a user by the name of rickie: tooltip shows: Name: Rickie Something etc...second to be shown is say billy joe: tooltip shows: Name: Rickie Something etc...get what i am saying??? Link to comment https://forums.phpfreaks.com/topic/22950-dynamic-tooltip-with-a-mysql-result/ Share on other sites More sharing options...
Daniel0 Posted October 4, 2006 Share Posted October 4, 2006 Would something like this do what you want? [code]<?php$result = mysql_query("SELECT * FROM users");while($user = mysql_fetch_assoc($result){ echo "<a href='index.php?profile={$user['id']}' title='{$user['real_name']}'>{$user['username']}</a><br />";}?>[/code] Link to comment https://forums.phpfreaks.com/topic/22950-dynamic-tooltip-with-a-mysql-result/#findComment-103570 Share on other sites More sharing options...
skatermike21988 Posted October 4, 2006 Author Share Posted October 4, 2006 well what i am wanting is to show a list of things, like a users rank, how many photo's they have etc. Link to comment https://forums.phpfreaks.com/topic/22950-dynamic-tooltip-with-a-mysql-result/#findComment-103575 Share on other sites More sharing options...
skatermike21988 Posted October 4, 2006 Author Share Posted October 4, 2006 any ideas??? Link to comment https://forums.phpfreaks.com/topic/22950-dynamic-tooltip-with-a-mysql-result/#findComment-103603 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.