1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
<html>
<head>
<title>Document sans titre</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="91%" cellspacing="0" cellpadding="0">
<tr>
<td width="35%"> </td>
<td width="39%">G</td>
<td width="26%">G</td>
</tr>
<tr>
<?php
$fichier = "fichier.csv";
$fic = fopen($fichier, 'rb');
for ($ligne = fgetcsv($fic, 1024); !feof($fic); $ligne = fgetcsv($fic, 1024)) {
?>
<tr>
<? $j = sizeof($ligne);
for ($i = 0; $i < $j; $i++) { ?>
<td> <input name="nom" type="text" value="<? echo $ligne[$i] ?> " size="30"> </td>
<? } ?>
</tr>
<? } ?>
</tr>
<tr>
<td> </td>
<td>G</td>
<td>G</td>
</tr>
</table>
</body>
</html> |
Partager