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 8985437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:19:48+00:00 2026-06-15T21:19:48+00:00

Needed Display Here my code and display <table width=100% cellspacing=0 cellpadding=0 summary= id=box-table-a> <thead>

  • 0

Needed Display
enter image description here

Here my code and display

<table width="100%" cellspacing="0" cellpadding="0" summary="" id="box-table-a">
        <thead>
          <tr>
            <th width="" scope="col"><strong>Item Description</strong></th>
            <th scope="col" style="text-align:center;"><strong>Quantity</strong></th>
            <th width="350" scope="col"><strong>Supplier Name</strong></th>
            <th scope="col" style="text-align:center;"><strong>Unit Price Rs.</strong></th>
            <th scope="col" style="text-align:center;"><strong>VAT Price Rs.</strong></th>
            <th width="100" scope="col"><strong>Total Price Rs.</strong></th>
          </tr>
        </thead>
        <tbody>

          <?php 


          $get_data =mysql_query("SELECT supplier_add_quotaion_form.quotaion_request_id,supplier_add_quotaion_form.supplier_id,supplier_add_quotaion_form.supplier_add_quotaion_id,supplier_add_quotaion_request_item.* FROM supplier_add_quotaion_request_item,supplier_add_quotaion_form 
WHERE supplier_add_quotaion_form.supplier_add_quotaion_id=supplier_add_quotaion_request_item.supplier_add_quotaion_id AND supplier_add_quotaion_form.quotaion_request_id='$id' ORDER BY quotation_item_id");


            while($row = mysql_fetch_array($get_data)){ 
                $quotaion_request_id = $row['quotaion_request_id'];
                $supplier_add_quotaion_id = $row['supplier_add_quotaion_id'];
                $supplier_id = $row['supplier_id'];
                $net_item_value = $row['net_item_value'];
                $vat_item_value = $row['vat_item_value'];
                $total_value = $row['total_value'];
                $quotation_item_id = $row['quotation_item_id'];


                 $get_count = mysql_query("SELECT quotation_item_id FROM supplier_add_quotaion_request_item WHERE quotation_item_id='$quotation_item_id'"); 

                $count = mysql_num_rows($get_count);


                $get_quantity = mysql_query("SELECT quantity_required,item_description FROM clerk_add_quotaion_request_item WHERE quotation_item_id='$quotation_item_id'"); 

                    while($rowB = mysql_fetch_array($get_quantity)){ 
                        $quantity_required = $rowB['quantity_required'];
                        $item_description = $rowB['item_description'];
                    }



            ?>

          <tr>
            <td><?php echo $item_description; ?></td>
            <td align="center"><?php echo $quantity_required; ?></td>
            <td><?php echo $supplier_id; ?></td>
            <td align="center"><?php echo $net_item_value; ?></td>
            <td align="center"><?php echo $vat_item_value; ?></td>
            <td align="center"><?php echo $total_value; ?></td>
          </tr>

          <?php
            }
        ?>
        </tbody>

enter image description here

  • When Duplicate description coming need to rowspan them or what ever method need to show display as first image..i try it get count and then rowspan according to it.but unable to get need display,don’t know how to delete extra cell
  • Duplicate row count not fixed,only example show first image,it can be range 1-7 duplicate for one description(for one item 7 suppliers able to bids)

supplier_add_quotaion_form table structure

supplier_add_quotaion_request_item

supplier_add_quotaion_request_item table structure

supplier_add_quotaion_form table structure

clerk_add_quotaion_request_item structure

enter image description here

  • 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-15T21:19:48+00:00Added an answer on June 15, 2026 at 9:19 pm

    You can do this in one pass,try this

    <?php 
              $get_data =mysql_query("...");
    
              $last_quotaion_request_id = -1;
                while($row = mysql_fetch_array($get_data)){ 
                    $quotaion_request_id = $row['quotaion_request_id'];
                    $supplier_add_quotaion_id = $row['supplier_add_quotaion_id'];
                    $supplier_id = $row['supplier_id'];
                    $net_item_value = $row['net_item_value'];
                    $vat_item_value = $row['vat_item_value'];
                    $total_value = $row['total_value'];
                    $quotation_item_id = $row['quotation_item_id'];
    
    
                     $get_count = mysql_query("SELECT quotation_item_id FROM supplier_add_quotaion_request_item WHERE quotation_item_id='$quotation_item_id'"); 
    
                    $count = mysql_num_rows($get_count);
    
    
                    $get_quantity = mysql_query("SELECT quantity_required,item_description FROM clerk_add_quotaion_request_item WHERE quotation_item_id='$quotation_item_id'"); 
    
                        while($rowB = mysql_fetch_array($get_quantity)){ 
                            $quantity_required = $rowB['quantity_required'];
                            $item_description = $rowB['item_description'];
                        }
    
    
    
                ?>
    
              <tr>
                <?php if($last_quotaion_request_id != $quotaion_request_id){ ?>
                <td rowspan="<?php echo $count; ?>"><?php echo $item_description; ?></td>
                <td rowspan="<?php echo $count; ?>" align="center"><?php echo $quantity_required; ?></td>
                <?php } ?>
                <td><?php echo $supplier_id; ?></td>
                <td align="center"><?php echo $net_item_value; ?></td>
                <td align="center"><?php echo $vat_item_value; ?></td>
                <td align="center"><?php echo $total_value; ?></td>
              </tr>
    
              <?php
                $last_quotaion_request_id = $quotaion_request_id;
                }
            ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've cut a lot of code. The code needed is below. Here is a
Help needed! I have 10 different .png files and i want to display them
I have a div that I use to display alerts when needed. If I
Every page on my application will display 1000 records and they are only needed
I'm working in MySQL/PHP. It's a zip code database. The first table has the
here is my below xml under that table due based on CTD_CTD_PKG_ID(some time under
I want to take my users from my table and display them with a
I want to select all entries in a MySQL table, and randomly display a
Needed to write a server text file as the output of a business process
Needed Finfo but deleted msi package, so uninstalled php 5.3.0, downloaded 5.3.2 and installed.

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.