ajout première SAE WEB 1ere année 17/20
This commit is contained in:
23
SAE_WEB1/html/autre.php
Normal file
23
SAE_WEB1/html/autre.php
Normal 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>
|
||||
Reference in New Issue
Block a user