[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 3 4 /** 5 6 * Export le dhcp au format CSV 7 * @Version $Id: export_csv.php 8592 2015-03-16 07:19:15Z plouf $ 8 9 * @Projet LCS / SambaEdu 10 11 * @auteurs - Philippe Chadefaux (Plouf) 12 13 * @note 14 15 * @Licence Distribue sous la licence GPL 16 17 */ 18 19 /** 20 21 * @Repertoire: dhcp 22 23 * file: export_csv.php 24 */ 25 26 include "config.inc.php"; 27 28 /******************** Export les tables ******************************************************/ 29 30 31 $jour=date("d-n-y"); 32 $query = mysql_query("select * from se3_dhcp"); 33 header("Content-Type: application/csv-tab-delimited-table"); 34 header("Content-disposition: filename=inventaire-$jour.csv"); 35 36 if (mysql_num_rows($query) != 0) { 37 38 // echo"\n"; 39 while($row = mysql_fetch_array($query)) { 40 $AFFICHE="$row[1];$row[3];$row[2]"; 41 42 // Affichage final 43 echo "$AFFICHE\n"; 44 } 45 } 46 47 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |