php - How can i fetch data from database in a specific order as one after the other to table? -


i need output in table data demo

my database contain 4 tables 1 main description ,one estimation calculation ,one deduction calculation has subtracted estimation calculation multiplied user rate ie.. e_(lxbxdxno) - d_(lxbxdxno)xrate=final amount (e) stands estimation , (d) deduction , should displayed in final amount 1 module,some calculations dont have length breadth depth , no called ls lump sum can directly go amount how can fetch data several database excel shown please in deep trouble.

descriptions= main description in sql table, description = sub description in sql table, descriptio deduction table in db , estimation , deductio_calc calculations corresponding input length breadth depth number

<?php  $sql = "select estmation.c_id,  estmation.est_id,estmation.desc_id,                 estmation.e_dis_id,estmation.no,estmation.length,estmation.bredth,                 estmation.depth,estmation.quant,discription_master.descriptions,                 sub_discription.description,deduction_calc.ded_id,deduction_calc.c_id,                 deduction_calc.desc_id,deduction_calc.dds_id,deduction_calc.n,                 deduction_calc.l_d,deduction_calc.b_d,deduction_calc.d_d,                 deduction_calc.q_d,d_sub_discription.descriptio          estmation,discription_master,sub_discription,             deduction_calc,d_sub_discription         estmation.desc_id=discription_master.desc_id           , estmation.desc_id=deduction_calc.desc_id          , deduction_calc.dds_id=d_sub_discription.dds_id          , estmation.e_dis_id=sub_discription.e_dis_id          group estmation.est_id "; $i=1; $k=0; $rs=mysql_query($sql) or die(mysql_error()); while($result=mysql_fetch_array($rs)) { ?>     <tbody>         <tr>              <td class="qty"><?php echo $i; $i++; ?></td>              <td class="desc"><h3><?php echo $result["descriptions"]; ?></h3><?php echo $result["description"]; ?><br><?php echo $result["descriptio"]; ?></td>              <td class="total"><h4><?php echo $result["length"]; ?></h4><?php echo $result["l_d"]; ?><br></td>             <td class="total"><h4><?php echo $result["bredth"]; ?></h4><?php echo $result["b_d"]; ?><br></td>             <td class="total"><h4><?php echo $result["depth"]; ?></h4><?php echo $result["d_d"]; ?><br></td>             <td class="total"><h4><?php echo $result["quant"]; ?></h4><?php echo $result["q_d"]; ?><br></td>             <td class="total"><h4><?php echo $result["no"]; ?></h4><?php echo $result["n"]; ?><br></td>             <td></td>         </tr>  <?php } ?>     </tbody>     </table> 


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -