query($sql); while($row = $query->fetch(PDO::FETCH_OBJ)) { echo "
$row->title
$row->intro
Автор:
$row->author
Читать целиком
"; } ?>