prepare('
SELECT `project_id`, `project_name`, `project_summary`, `project_homepage`, `project_repository`, `project_forum`, `project_archived`
FROM `fm_projects`
WHERE `project_deleted` IS NULL
ORDER BY !ISNULL(`project_archived`), `project_order` DESC
');
$getProjects->execute();
$projects = $getProjects->fetchAll(PDO::FETCH_OBJ);
$getLanguages = $pdo->prepare('
SELECT pl.`language_name`, pl.`language_colour`
FROM `fm_proglangs` AS pl
LEFT JOIN `fm_projects_proglangs` AS ppl
ON ppl.`language_id` = pl.`language_id`
WHERE ppl.`project_id` = :project_id
ORDER BY ppl.`priority`
');
foreach ($projects as $project) {
$getLanguages->bindValue('project_id', $project->project_id);
$getLanguages->execute();
$languages = $getLanguages->fetchAll(PDO::FETCH_OBJ);
if(!$archived && !empty($project->project_archived)) {
$archived = true;
?>
'
. html_footer()
. ''
. html_close();