heb geprobeerd het met isset op te lossen, maar dat werkt niet helemaal goed.
kan iemand mij helpen?
<?php
$id = $_REQUEST['id']; // this will get the id of the link, this will be explained later.
switch($id) { // make a case with the id
default: //When page is loaded this will be the main content, put the content in main.php(you can change the name)
include_once "structuur/header.php";
?>
<div id="container2">
<div id="left-container">
<?php
include_once "structuur/sidebar_type_training_menu.php";
?>
</div>
<div id="main-content-container" style='width:60%; background:#eef3f9; margin-left: 4%; margin-top: 3.3%; min-height: 404px;'>
<h1>Alle trainingen op alfabetische volgorde</h1>
<?php
require_once 'class/pagination.php';
if(empty($_GET['display'])){
$_GET['display'] = 1;
}else{
$_GET['display'];
}
$aantal_trainingen_per_pagina = 4;
$pagination = new Pagination($_GET['display'],$aantal_trainingen_per_pagina);
$alle_training_soort = $pagination->getTrainingenType();
while($a=mysql_fetch_assoc($alle_training_soort))
{
echo "<div id='container1'><td>";
echo "<div id='left2'>";
echo '<td><b>' . $a['Training'] . '</b></td><br>';
$plaatje = $a['Plaatjes'];
echo '<td>' . nl2br(htmlspecialchars($a['Beschrijving'])) . '</td><br>';
echo '<br>';
echo '<td>Categorie: <b>' . $a['Categorie'] . '</b></td><br>';
echo "</div>";
echo "<div id='right2'>";
echo "<div class='overzicht-plaatje'> <img src='$plaatje'/> </div> <br>" ;
{
echo "</div>";
echo"</tr></div>";
}
}
?>
<div>