|
Server IP : 10.128.40.6 / Your IP : 216.73.216.233 Web Server : Apache System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : logmcpe ( 111175) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/logmcpe/www/TMCPRO/pages/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include 'includes/config_tmcpro.php' ;
include 'includes/stable_functions_tmcpro.php' ;
$q= dbi_query('SELECT * FROM eleves');
// $tabeleves = [];
$tabeleves[] = array('NOM', 'PRENOMS', 'MOYENNE');
$tabeleves[] = array('', '', '');
while($rs = dbi_fetch_row($q)) {
$tabeleves[] = array($rs['nom'], $rs['prenom'], $rs['moyenne']);
}
$ay = 1233 ;
$fichier_csv = fopen("sortie/tts.csv", "w+");
fputs($fichier_csv, "0;yassin;$ay");
// foreach($tabeleves as $ligne){
// fputcsv($fichier_csv, $ligne, ";");
// }
fclose($fichier_csv);
?>