Skip to content
Snippets Groups Projects
Commit 162b2722 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

small fixes

parent b625dc18
No related branches found
No related tags found
No related merge requests found
......@@ -37,27 +37,26 @@ $db->createTables();
<div class="row">
<div class="col s12 m10 offset-m1 l6 offset-l3">
<div class="collection center-align">
<?php
$roadmaps = $db->getRoadmaps();
if($roadmaps == false)
{
header('Location: ../error.php?message=error_database_connection');
exit;
echo '<h5 class="center-align">no roadmaps available</h5>';
}
else
{
echo '<div class="collection center-align">';
for($i = 0; $i < sizeof($roadmaps); $i++)
{
echo '<a class="collection-item blue-text" href="index.php?id='.$roadmaps[$i]['ID'].'">'.$roadmaps[$i]['Projectname'].'</a>';
}
echo '</div>';
}
?>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment