ajout première SAE WEB 1ere année 17/20

This commit is contained in:
EmmanuelTiamzon
2025-12-05 10:29:17 +01:00
parent 936915e585
commit b05817dbcd
42 changed files with 4335 additions and 0 deletions

23
SAE_WEB1/html/autre.php Normal file
View File

@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="fr">
<head>
</head>
<body>
<?php /*exercice 3 : */
foreach($data as $person){
echo"<tr>";
foreach($person as $value)
echo "<td>$value</td>";
$imc = round($person['Poids']/($person['Taille'] * $person[$taille])*10000,2);
$warning = "";
if ($imc >= 25)
$warning = 'warning';
echo "<tr class='$warning'>"
foreach($person as $value)
echo "<td>$value</td>"
echo "<td>$imc</td></tr>";
}
?>
</body>
</html>