while($row = $result->fetch()) {
не пойму зачем, думаю так правильней
$sql = 'SELECT serviceType, price FROM services';
$result = $pdo->query($sql);
foreach($row = $result->fetchAll() as $key => $value) {
echo "" . htmlspecialchars($value, ENT_QUOTES, 'UTF-8'). "";
}