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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
| <body>
<?php //---------------------------- traitemon de connection---------------------------
/*--*/ include 'connexion.php';
/*--*/ // connexion
/*--*/ mysql_connect($host,$user,$pass) or die(error);
/*--*/ mysql_select_db($b) or die(error);
/*--*/
/*--*/ $table1="albume";
/*--*/ $query = "SELECT *
FROM coordonner
WHERE
coordonner.fonction = ".$_GET["id"]."
AND t_tel.coordonner = coordonner.code_coordonner
AND coordonner.grade = grade.code_grade";
/*--*/ $result = mysql_query($query)or die(mysql_error());
//---------------------------- fin de traitement---------------------------
?>
<div><?php
/*$date=date("d-m-y");
$heure= date("m:i");
echo ("nous somme le $date - ile $heure")*/
$jour=array("dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi");
$mois=array("","janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre");
$madate=$jour[date("w")]." ".date("d")." ".$mois[date("n")]." ".date("y");
echo "Nous sommes le $madate";
?>
</div>
<table width="200" border="1">
<tr>
<td>Nom</td>
<td>Prenom</td>
<td>Matrecule</td>
<td>Grade</td>
<td>Tel</td>
</tr>
<?php
$i=0;
while ($val = mysql_fetch_array($result)) {
if($i>2){ $i=0; ?>
<tr>
<?php }?>
<td> <?php echo $val["nome"]?></td>
<td><?php echo $val["prenom"]?></td>
<td><?php echo $val["mle"]?></td>
<td><?php echo $val["grade"]?></td>
<td><?php echo $val["fonction"]?></td>
</tr><?php $i=$i+1; }?>
</table>
</body> |
Partager