dbConnection, $query);
$previousSection = '';
$output = '';
while ($row = mysqli_fetch_assoc($dbResult)) {
if ($row['caption'] != $previousSection) {
if ($output !== '') {
$output .= '';
}
$output .= '
' . $row['caption'] . '
';
$previousSection = $row['caption'];
}
$output .= '- ' . $row['short_title'];
if (trim($row['description']) != '') {
$output .= ' - ' . $row['description'];
}
$output .= '
';
}
$output .= '
';
$this->content['projects'] = $output;
}
}