Traitement

Traitement

[insert_php]
include(‘Ancien/Bidon/config.php’);
$Id = $_POST[‘test’];
$Cours =$_POST[‘test2’];
echo ‘le nom est ‘ , $Id,’
‘;
echo ‘Le cours est:’,$Cours,’
‘;
$bdd = new PDO(‘mysql:host=ikebana-eota.eu.mysql;dbname=ikebana_eota_eu;charset=utf8’, ‘ikebana_eota_eu’, $SQLpass);

echo ‘

‘;
$label = array(‘Id’,’Nom’,’Prenom’,’Adresse’,’Langue’,’Ville’,’Email’,’Phone’,’Groupe’,’AdhĂ©sion’,’Stage’);
echo ‘

‘;
for ($i = 0;$i<11;$i++) { echo '

‘;
}
echo ‘

‘;
$sql = “UPDATE `liste` SET `groupe`=’$Cours’ WHERE Id = $Id”;
$stmt = $bdd->prepare($sql, array(PDO::ATTR_CURSOR, PDO::CURSOR_SCROLL));
$stmt->execute();

$sql = “SELECT * FROM liste where Id = $Id”;
$stmt = $bdd->prepare($sql, array(PDO::ATTR_CURSOR, PDO::CURSOR_SCROLL));
$stmt->execute();
while ($data = $stmt->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_NEXT))
{

echo ‘

‘;
for ($i = 0;$i<11;$i++) { echo '

‘;
}
echo ‘

‘;
echo ‘

‘,$label[$i],’
‘,$data[$i],’-‘,’

‘;
}

[/insert_php]