salut tout le monde
je suis débutante en php
j'ai réaliser un programme qui fais la rechrche des enseignats et des ats
mais dans l'affiche il affiche le tableau comme suit
exemple : nom, prenom, adresse, dates de naissance ,...etc
mais mois je le préfére comme suit :
nom
prenom
adresse
date de naissance
.
.
.....etc

c'est a dire l'affichage vetical

voila ce que j'ai comme programme
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php require_once('Connections/connection.php'); ?>
<?php
$colname_Recordset1 = "1";
if (isset($_POST['Nom'])) {
  $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_POST['Nom'] : addslashes($_POST['Nom']);
}
mysql_select_db($database_connection, $connection);
$query_Recordset1 = sprintf("SELECT * FROM ats WHERE Nom LIKE '%%%s%%'", $colname_Recordset1);
$Recordset1 = mysql_query($query_Recordset1, $connection) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> LA RECHERCHE DES ATS </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {color: #330033}
.style2 {color: #000000}
body {
	background-image: url();
	background-color: #CCFFFF;
}
-->
</style>
</head>
 
<body>
<p>Pour r&eacute;einitialiser la recherche cliquer <a href="frame%20recherche%20ats.htm">ICI </a></p>
<p><br>
</p>
<?php if ($totalRows_Recordset1 > 0) { // Show if recordset not empty ?>
<table border="1" >
  <tr>
 
    <td width="100" rowspan="2"><div align="center" class="style2">Nom</div></td>
    <td width="100" rowspan="2"><div align="center" class="style2">Prenom</div></td>
    <td width="100" rowspan="2"><div align="center" class="style2">E-Mail</div></td>
	<td height="32" colspan="3"><div align="center" class="style2">DATE DE NAISSANCE </div>	  </td>
	<td width="80" rowspan="2"><div align="center" class="style2">N°TEL</div></td>  
	<td width="160" rowspan="2"><div align="center" class="style2">Adresse</div></td>
	<td width="60" rowspan="2"><div align="center" class="style2">Grade</div></td>
 
 
  </tr>
  <tr>
    <td><div align="center">JOUR</div></td>
    <td><div align="center">MOIS</div></td>
    <td><div align="center">ANNEE</div></td>
  </tr>
  <?php do { ?>
  <tr>
 
    <td><div align="center" class="style1"><?php echo $row_Recordset1['Nom']; ?></div></td>
    <td><div align="center" class="style1"><?php echo $row_Recordset1['Prenom']; ?></div></td>
 
    <td><div align="center" class="style1"><?php echo $row_Recordset1['mail']; ?></div></td>
	<td width="40"><div align="center" class="style1"><?php echo $row_Recordset1['jour']; ?></div></td>
	<td width="80"><div align="center" class="style1"><?php echo $row_Recordset1['mois']; ?></div></td>
	<td width="60"><div align="center" class="style1"><?php echo $row_Recordset1['annee']; ?></div></td>
	<td><div align="center" class="style1"><?php echo $row_Recordset1['Ntel']; ?></div></td>
	<td><div align="center" class="style1"><?php echo $row_Recordset1['Adresse']; ?></div></td>
	<td><div align="center" class="style1"><?php echo $row_Recordset1['Grade']; ?></div></td>
  </tr>
  <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
<?php } // Show if recordset not empty ?>
<?php if ($totalRows_Recordset1 == 0) { // Show if recordset empty ?>
<form name="form1" method="post" action="">
  ATS<?php echo $_POST['Nom']; ?> n'existe pas!
</form>
<?php } // Show if recordset empty ?>
<p>&nbsp;</p>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>
j'espére qu'il ya quelqu'un qui peux m'aidé
merci d'avance