Here is my code, part of it is working flawlessly while the other isn't.
<?php
$query = "Select * from Query ORDER BY time DESC";
$result = mysql_query($query);
while ($row = mysql_fetch_assoc($result)) {
?>
<span class="hotspot" onmouseover="tooltip.show('<center><b><?php echo $row['name'] ?></b></center>');" onmouseout="tooltip.hide();">
<?php
echo "<img src='/" . $row['name'] . ".gif'> ";
}
?>
Now there is like 100+ rows, the second $row['name']
is working fine with the loop, but the first one is using the First rwos result for every result.
Any Solution?