Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include 'safe/DAL.php';
- $feedback = getAllCups();
- if ($feedback != "Error.") {
- for ($x = 0; $x < count($feedback); $x++) {
- $tmp_cup = $feedback[$x];
- echo '<a href="#" class="list-group-item">';
- echo '<h4 class="list-group-item-heading">';
- echo $tmp_cup->getCupName() . ', ' . $tmp_cup->getYear();
- echo '</h4>';
- echo '<p class="list-group-item-text">Vinnare: Inte avslutad ännu</p>';
- echo'</a>';
- }
- } else {
- echo '<a href="#" class="list-group-item">';
- echo'<h4 class="list-group-item-heading">Inga cuper hittades</h4>';
- echo'</a>';
- }
- error_reporting(E_ALL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement