Solutions Tebtoub
file15.txt
tebtoub
souhaib
5
tebtoub
souhaib
15
tebtoub
souhaib
10
-------------------------------
calcul.php
Untitled Document
Les admin sont:
nom |
prenom |
note |
";
fgets($fd);
while(!feof($fd) ){
$name=fgets($fd);
$pw=fgets($fd);
$note=fgets($fd);
if($note >= 10){
echo"";
echo"$name | ";
echo"$pw | ";
echo"$note |
";
}
}
fclose($fd);
?>
Les non admin sont :
nom |
prenom |
note |
";
fgets($fd);
while(!feof($fd)){
$name=fgets($fd);
$pw=fgets($fd);
$note=fgets($fd);
if($note < 10){
echo"";
echo"$name | ";
echo"$pw | ";
echo"$note |
";
}
}
fclose($fd);
?>
clicker ici.
--------------------------------
admin.php
Untitled Document
= 10){
#fputs($fadm,"\n");
fputs($fadm,$name);
#fputs($fadm,"\n");
fputs($fadm,$pw);
#fputs($fadm,"\n");
fputs($fadm,$note);
$k=$k+1;
}
}
fclose($fd);
$y=($k/$s)*100;
$y= round($y, 2);
echo"le pourcentage est $y %"
?>