Refactor to use dataconverted results
<?php 
	require_once 'header.php';
 	$dbHandler = new DatabaseHandler();
	$restaurant = $dbHandler->getRestaurant('Nilles nation');
	$sitting = $dbHandler->getSitting($_GET['sittDate']);
	$parties = $dbHandler->getParties($_GET['sittDate']);
	$dbHandler->disconnect();

 ?>

<div class="content">
	<div class="title">
		Sittning <?php echo $sitting->date; ?>
	</div>
	<div class="single-sitting">
		<div class="left">
				<h1>Välkomna!</h1>
				<table>
					<tr>
						<th>Sällskap</th>
						<th>Antal</th>
					</tr>
					<?php 
						foreach ($parties as $key => $p) {
							?>
								<tr>
									<td><?php echo $p->name?></td>
									<td><?php echo $p->prel?></td>
								</tr>
							<?php
						}
					?>
				</table>
		</div>
		
		<div class="right">
		</div>

	</div>
</div>


<?php include 'footer.php'; ?>
<?php 
	include 'header.php';
 	require_once 'dbconfig.php'; 
 	require_once 'database.php';
 	$db = new Database(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_DATABASE);
	$db->openConnection();

	if(!$db->isConnected()) {
		header("Location: cannotConnect.php");
		exit();
	}

	$sittings = $db->getSitting();
	
	
	$db->closeConnection();

 ?>

<div class="content">
	<div class="title">
		Sittningar HT15
	</div>
	<div class="sitting-content">
		<?php 
			foreach($sittings as $row => $s) {
				$date = date('j/n', strtotime($s[0]));
				?>
				<div class="event-window" id="<?php echo $date; ?>">
					<div class="event-window-date">
						<?php echo $date; ?>
					</div>
					<div class="event-window-spots">
						Antal platser: 200
					</div>
					<div class="event-window-button">
						<a href="#"> Se mer </a>
					</div>
					<button class="event-remove-button">Remove</button>
				</div>
		<?php } ?>
	</div>
</div>


<?php include 'footer.php'; ?>