prepare($sql, [PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY]); $sth->execute([]); $red = $sth->fetchAll(); ?>