ok I'v been working on a little image gallery
but my query is only returning 1 image with comment
code:
// do query for user images ,comments-------------------------------------------------
$query = "
SELECT G_username,G_image,G_comments
FROM w3t_Gallery
WHERE G_username = '$Username'
";
$sth2 = $dbh -> do_query($query);
list ($Username,$Gimage,$Gcomments) = $dbh -> fetch_array($sth2);
$dbh -> finish_sth($sth2);
$Pic = "<img width=200 height=150 src = "$Gimage" alt="$Username">";
// end do query for user image ,comments--------------------------------------------
code:
echo"<TR><TD><a href="$Gimage">$Pic<br><center>$Gcomments</center></TD></TR></TABLE>";
now there are 5 results it should return but only retuning 1
help can you see what I did wrong