Total cotisation

Total cotisation

[insert_php]
include(‘Ancien/Bidon/config.php’);
$bdd = new PDO(‘mysql:host=ikebana-eota.eu.mysql;dbname=ikebana_eota_eu;charset=utf8’, ‘ikebana_eota_eu’, $SQLpass);

$sql = ‘SELECT SUM(adhesion) as Totcot, SUM(cot_Stage) as Totstage FROM liste’;

$stmt = $bdd->prepare($sql, array(PDO::ATTR_CURSOR, PDO::CURSOR_SCROLL));
$stmt->execute();
$somme = $stmt->fetch();
echo ‘ Cotisation : ‘ . $somme[‘Totcot’]. ‘ Stage : ‘. $somme[‘Totstage’];
[/insert_php]