Hi everyone,
I hope someone can help me, here's my problem:
I have a php script that retreive photos from a mysql db (and place it on my page into a loop in the right album section), I dont know if you understand what I mean but if you have a look at it i'm sure you'll understand
http://www.vitrail-entete.com/tdj/quoi_de_neuf.php
What I need is when the user places his cursor over the thumbnail, the larger image of the thumbnail should appear in the frame just over the thumbnail row.
And part of my 'unworking' code is:
....
echo "<table border=0 width=510>";
echo "<tr>";
echo "<td align=center colspan=4>";
echo "<img id='larger' border=1 width=400 height=300>";
echo "</td>";
echo "</tr>";
echo "</table>";
$col = 0;
echo"<center>";
echo "<table border=0 width=210>";
$AlbumId = $row[AlbumId];
$result2 = mysql_query("SELECT * FROM PhotosTable WHERE PhotosId = '$AlbumId' order by Date DESC");
while($row = mysql_fetch_assoc($result2)) {
if ($col == 0)
echo "<tr>";
$PathG = '/' . 'tdj' . $row['PhotosPathG'];
echo "<td align=center><img border=1 src='$PathG' onmouseover='getElementById(larger).src='$PathG' width=100 height= 70'>";
echo "</td>";
$col++;
if ($col == 4)
{
echo "</tr>";
$col = 0;
}
}
echo "</table>";
echo "</center>";
......
Thank you