bonjour

j ai deux tables (table 1 et table 2)

LES DEUX TABLE ON LES MEMES CHAMPS


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
 
mysql_select_db($database_site, $site);
$query_table1 = "SELECT * FROM $table1 WHERE valid_pa = 1 ORDER BY nom_pa ASC";
$table1 = mysql_query($query_table1, $site) or die(mysql_error());
$row_table1 = mysql_fetch_assoc($table1);
$totalRows_table1 = mysql_num_rows($table1);
 
 
mysql_select_db($database_site, $site);
$query_table2 = "SELECT * FROM $table2 WHERE valid_pa = 1 ORDER BY nom_pa ASC";
$table2 = mysql_query($query_table2, $site) or die(mysql_error());
$row_table2 = mysql_fetch_assoc($table2);
$totalRows_table2 = mysql_num_rows($table2);
 
 
//affichage
 
 
<table width="100%" border="0" align="center">
  <?php do { 
 
  ?>
  <tr class="Tableau_corps"> 
    <td width="5%"></td>
    <td width="32%"></td>
    <td width="16%"><div align="center"><?php echo $row_table1et2['cpad']; ?></div></td>
    <td width="41%"><?php echo $row_table1et2['ad']; ?></td>
    <td width="6%"></td>
  </tr>
  <?php } while ($row_table1et2 = mysql_fetch_assoc($table1et2)); ?>
</table>

je souhaite afficher le resutat de la recherche dans les deux tables sur un meme tableau et dans le meme ordre de trie

pouvez vous m aider ?

merci pour votre aide