Hi All,
I know that this may be classified as client side and not server side but I am working with a php page that displays bands name and their picture, I want to be able to show the image when the user mouses over the band name. So basically I need a script that will work with the php code and not need to be updated when new bands are added. Below is the code that is used to display the content at the moment. Any help or suggestions would be great.
<?php
$sql=“SELECT * FROM bands ORDER BY title”;
//echo $sql;
$res=SQL_query($sql);
echo “<table>”;
while ($row=SQL_fetch_array($res)){
echo “<tr><td>”;
if ($row[imageurl]<>""){
echo “<img src='bandthumb.php?file=uploads/bands/”.$row[imageurl]."’>";
}
$ren_url=make_redundant_url($row[‘title’]);
echo “</td><td><a href='band_info.php?id=”.$row[‘id_band’]."$ren_url’>".$row[‘title’]."</a></td>";
echo "</tr>";
}
echo “</table>”;
?>