05/06/2017

PHP page

[insert_php]

$servername = ‘localhost’;
$username = ‘u984599589_avis’;
$password = ‘avisavis’;
$dbname = ‘u984599589_avis’;

$conn = new mysqli($servername, $username, $password, $dbname);

if ($conn->connect_error) {
die(“Connection failed: ” . $conn->connect_error);
}

$sql = “SELECT * FROM Donazioni”;

$result = $conn->query($sql);

if ($result->num_rows > 0) {

while($row = $result->fetch_assoc()) {

echo $row[‘DATA’].” “.$row[‘TIPO_DO’].” “.$row[‘GRUPPO_RH’].” “.$row[‘NUM_TES’].”
“;

}

}

$conn->close();

[/insert_php]