php - Display multiple images from database using PDO mysql -
the situation: show 1 image @ time.
problem: show images database web page.
you don't have id selected, should way:
while($row = $statement->fetch()) { ?> <img src="image.php?id_inter=<?= $row['id']; ?>" /> ... <?php } ...
if use id method seems stated in ( try { $requestedid = (int)$_get['id_inter']; })
then
..."id_inter=<?= $reuqestedid; ?>"
Comments
Post a Comment