MySQL display single row from a table
<?php include "conn.php"; $id = 37; $stmt = $pdo->prepare("SELECT * FROM images WHERE id=? LIMIT 1"); $stmt->execute([$id]); $row = $stmt->fetch(); echo $row["image_file_name"]; ?>
<?php include "conn.php"; $id = 37; $stmt = $pdo->prepare("SELECT * FROM images WHERE id=? LIMIT 1"); $stmt->execute([$id]); $row = $stmt->fetch(); echo $row["image_file_name"]; ?>