I have two tabs named respectly liste_pieces and client_pieces.
The first contain a list of many elements about 1000. the second contain some element of the first.
Actually I'm doing a query to fullfill the second tab with the first.
Also I would like to display all element from the first that are not in the second.
I've thought I could do a joint pas a joint will only display elements that are in both tab.
And actually that is not what I'm looking for.
I've done that query for the moment
<table id="box-table-a" width="100%">
<tr>
<th scope="col" width="50%">LISTE DES PIÈCES</th>
<th scope="col" width="50%">AJOUT ?</th>
</tr>
<?php $sql="SELECT * FROM `liste_pieces`";
$result=mysql_query($sql) or die;$i=0;
while($data=mysql_fetch_assoc($result))
{?>
<tr>
<td><?php echo $data['libelle'] ; ?></td>
<td style="text-align:center" align="center">
<p align="center"> <input type="hidden" name="piece[<?php echo $i ; ?>]" value="0" /><input type="checkbox" class="checkbox" value="1" name="piece[<?php echo ++$i ; ?>]" id="piece[<?php echo ++$i ; ?>]" /></p></td>
</tr>
<?php } ?>
But this display to me all elements from the first tab. I do not really know how to remove elements that exists in the second tab.
I have the column id on liste_pices that is the same in the second tab except that it is called id_piece.
I'm a bit lost.
I do not know how to process.
Receive All my utmost Respect.
Kind regards.
SP.