Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8546845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:07:45+00:00 2026-06-11T13:07:45+00:00

I have two tabs named respectly liste_pieces and client_pieces. The first contain a list

  • 0

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&Egrave;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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:07:46+00:00Added an answer on June 11, 2026 at 1:07 pm

    Use queries like this

    "select * from liste_pieces where column_name not IN (select column_name from client_pieces)"

    and

    "select * from client_pieces where column_name not IN (select column_name from liste_pieces )"

    This will solve your problem, the column_name should present in both table with same datatype.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tabs on top of my website named Business and Personal. When
I have a Tab bar application with two tabs named Tab1 and Tab2. Whenever
I have two tabs, one is sales detail which contains a field named sales
I have a drop down list with two values (for now..) with other elements
I have a tab bar controller with two tabs: tabBar1View with a button named
I have a TabControl with two tabs containing lists that should always be scrolled
So, in my program i have a TabActivity which contains two tabs, one tab
i have a parent form, it will have two tabs calling the two child
I have two tabs one called Sale-Items and the other All-Items and for each
I have two sets of tabs, one nested inside the other. The nested tabs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.