if(isset($_GET['edit_id'])){
$id = $_GET['edit_id'];
$find = $db->query("SELECT * FROM products WHERE id='$id' ");
}
http://localhost/shop/admin/edit.php?edit_id=3
$id = $_GET['edit_id'];
$stmt = $db->prepare("SELECT * FROM products WHERE id=?");
$result = $db->execute([$id]);
if (($data = $result->fetch()) !== false) {
var_dump($data);
}