prepare($page); $page->execute(); if($page->rowCount() > 0){ while ($pag = $page->fetch (PDO::FETCH_OBJ)){ $title=$pag->page_title; $text=$pag->text; } } ?> <?=$title;?> at The Royal Oak