<tr> <td> <a href="createComp.php">Create new competition</a><br/> <h1 class="categoriesheader">Existing competitions</h1> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td>Date</td><td>Name</td><td>Organizer</td><td>Public</td><td></td> </tr> <?php $comps = Emma::GetAllCompetitions(); //echo(sizeof($comps)); //for ($i = 0; $i < sizeof($comps); $i++) foreach ($comps as $comp) { ?> <tr id="row<?php echo $comp["tavid"]; ?> "><td><?php echo date("Y-m-d", strtotime($comp['compDate'])); ?> </td><td><?php echo $comp["compName"]; ?> </td><td><?php