<?php session_start(); require "CardDb.php"; require "menu.html"; $card_number = $_SESSION['card-number']; $sq = new CardDb(); ?> <h2>Lo sconto di <?php echo $_SESSION['money']; $sq->setPoints($card_number, 0); $result = $sq->getPoints($card_number); ?> € è stato usato:</h2> <table class="rwd-table"> <tr> <th>Numero Card</th> <th>Saldo Punti</th> <th>Buono Utilizzabile</th> <th>Nome</th> <th>Telefono</th> <th>Email</th> </tr> <?php while ($data = $result->fetchArray()) { $_SESSION['card-number'] = $data['id']; $_SESSION['phone'] = $data['phone']; $_SESSION['mail'] = $data['mail']; ?> <tr>