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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -