Below is my php form:
<form method="POST" action="finalc.php" name="sing">
  <table>
  <tr>
<td>Sl.No.</td>  <td>Date</td>  <td>Cus Id</td>  <td>Name</td>
<td>Sm1</td>  <td>Sm2</td>  <td>Sm3</td>  <td>Sm4</td> <td>Total</td> <td>Min</td>
  </tr>         
                    <?php                           
                     $i =0;
                     $sql = mysql_query("select date cus_id, name, sm1, sm2, sm3, sm4,
                            sum(sm1 + sm2 + sm3 + sm4) as total,
                            least(sm1, sm2, sm3, sm4) as min
                            from final");
                        $count = mysql_num_rows($sql);
                        if($count == 0){
                        ?>
                        <tr> 
                            <th><?php echo 'No Records Founds!' .mysql_error(); ?></th> 
                        </tr>
                        <?php 
                        }else{
                            while($sql_result = mysql_fetch_assoc($sql)){
                        ?>
<tr>
<td><?php echo $i += 1; ?></td>
<td><input type="text" name="date" value="<?php echo $sql_result['date']; ?>" ></td>
<td><input type="text" name="cus_id" value="<?php echo $sql_result['cus_id']; ?>" ></td>
<td><input type="text" name="name" value="<?php echo $sql_result['name']; ?>" ></td>
<td><input type="text" name="sm1" value="<?php echo $sql_result['sm1']; ?>" ></td>
<td><input type="text" name="sm2" value="<?php echo $sql_result['sm2']; ?>"</td>
<td><input type="text" name="sm3" value="<?php echo $sql_result['sm3']; ?>"></td>
<td><input type="text" name="sm4" value="<?php echo $sql_result['sm4']; ?>"></td>
<td><input type="text" name="total" value="<?php echo $sql_result['total']; ?>"></td>
<td><input type="text" name="min" value="<?php echo $sql_result['min']; ?>"></td>
</tr>
    <?php
    }
    }
    ?>
 </table>
<input name="submit" type="submit" id="submit" value="Submit"  />
</form>
My report table is as like :
Id  Date        Name   sm1  sm2  sm3  sm4  total  min
1   15/10/2017  aman   2    3    5    7    17     2
2   16/10/2017  anil   23   24   17   34   98     17
3
4
++
final table data comes from customer login. all the data from customer login shows here.
Question : In the finalc.php what will be the insert query to insert all the mysql_fetch_assoc multiple row data into mysql database with single submit button?
 
    