onthespot Posted August 17, 2009 Share Posted August 17, 2009 hey guys, my code <table class="awardtables" cellspacing="3" cellpadding="3"> <?php $awarduser = mysql_real_escape_string($req_user_info['username']); $query = "SELECT * FROM ".TBL_AWARDS." WHERE awarduser = '$awarduser' ORDER BY awarddate"; $result = mysql_query($query) or die("There was a problem with the SQL query: " . mysql_error()); if($result && mysql_num_rows($result) > 0) { $i = 0; $max_columns = 10; while($row = mysql_fetch_assoc($result)) { // make the variables easy to deal with $awardtype = $row['awardtype']; // open row if counter is zero if($i == 0) echo "<tr>"; // make sure we have a valid product if($awardtype != "" && $awardtype != null) echo "<td><img src=\"images/awards/$awardtype.jpg\" width=\"8\" height=\"18\" /></td>"; // increment counter - if counter = max columns, reset counter and close row if(++$i == $max_columns) { echo "</tr>"; $i=0; } // end if } // end while } // end if results // clean up table - makes your code valid! if($i < $max_columns) { for($j=$i; $j<$max_columns;$j++) echo "<td> </td>"; } ?> </tr> </table> How can i get another row called "awardcomment" and display this when a user hovers over my image with their cursor? thanks Link to comment https://forums.phpfreaks.com/topic/170650-mouse-hover/ Share on other sites More sharing options...
deansatch Posted August 17, 2009 Share Posted August 17, 2009 Best trying a css or javascript forum for that one Link to comment https://forums.phpfreaks.com/topic/170650-mouse-hover/#findComment-900071 Share on other sites More sharing options...
onthespot Posted August 17, 2009 Author Share Posted August 17, 2009 Ahh not php? cheers Link to comment https://forums.phpfreaks.com/topic/170650-mouse-hover/#findComment-900084 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.