1
2
3
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $q = $db->prepare('SELECT txt FROM data'); $q->execute(); echo <<< EOH
EOH; print stripslashes($q->fetchObject()->txt); echo <<< EOH
EOH; print stripslashes($q->fetchObject()->txt); echo <<< EOH
EOH; print stripslashes($q->fetchObject()->txt); echo <<< EOH
EOH; ?>