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
|
<?php
mysql_connect("localhost","root","123") or die(mysql_error());
mysql_select_db("basepfe")or die('Pas de Base de donn\351');
$sql=("SELECT t.num, t.nomE, t.prenom
FROM etudiant AS t, filiere AS f
WHERE f.nomF = '$e'
AND f.annee = '$d'");
$t=mysql_query($sql);
while($result=mysql_fetch_array($t))
{
$num = $result['num'];
$nom = $result['nomE'];
$prenom = $result['prenom'];
?>
</tr>
<th><?php echo $num; ?></th>
<th><?php echo $nom; ?></th>
<th><?php echo $prenom; ?></th>
<?php
for($i=0;$i<$nbResult;$i++){
echo'<th><input type="text" name='.$i.' value=""/></th>';
}
?>
</tr> |
Partager