我有两个按钮添加和删除添加和删除div(其中包含其他div),但是,如果我想删除一行,我只能删除最后一行(div),所以我想添加一些"删除按钮"在每行的末尾(div).问题是我这样做但我只能删除第一行只有一次,我无法删除其他行.
HTML代码:
<form action='' method='post'>
<div class='row'>
<div class='col-md-2 col-sm-2 col-lg-2'> <h4>Manufacturing_part_no</h4></div>
<div class='col-md-1 col-sm-1 col-lg-1'> <h4>Type</h4></div>
<div class='col-md-2 col-sm-2 col-lg-2'><h4>Description</h4> </div>
<div class='col-md-1 col-sm-1 col-lg-1'> <h4>Value</h4></div>
<div class='col-md-1 col-sm-1 col-lg-1'> <h4>Voltage</h4></div>
<div class='col-md-1 col-sm-1 col-lg-1'> <h4>Power</h4></div>
<div class='col-md-1 col-sm-1 col-lg-1'> <h4>Percent.%</h4></div>
<div class='col-md-1 col-sm-1 col-lg-1'><h4>Quantity</h4> </div>
<div class='col-md-1 col-sm-1 col-lg-1'> <h4>Rack_no</h4></div>
<div class='col-md-1 col-sm-1 col-lg-1'> <h4>Proj. Name</h4></div>
</div>
<div id='forma' >
<div class='row row1'>
<div class='col-md-2 col-sm-2 col-lg-2'> <input type='text' class='form-control' name='manufacturing_part_no1'></div>
<div class='col-md-1 col-sm-1 col-lg-1'> <input type='text' class='form-control' …Run Code Online (Sandbox Code Playgroud) 这是当我用html代码手动编写表时发生的情况,页脚停留在页面的底部应该是,但是当我用php执行此操作时,页脚会显示在页面中间.下面是我用来打印表格的php代码:
<?php
if (isset($_POST["tipi"],$_POST["godina"],$_POST["kati"]))
{
// Create connection
$con=@mysqli_connect("localhost","root","","merville");// duhet ndryshuar emri i databazes dhe pastaj emri i tabeles ne rastin tone merville
// Check connection
if (mysqli_connect_errno()) {
echo "Per momentin faqja eshte duke u punuar. ";
}
else{
//#################################
$tipi=$_POST["tipi"];
$godina=$_POST["godina"];
$kati=$_POST["kati"];
$dhoma=$_POST["dhoma"];
//#################################
//############ berja e querit
$kerkim="SELECT * FROM motorrkerkimi WHERE tipi='$tipi'
AND godina='$godina' And kati='$kati' And dhoma='$dhoma'
ORDER BY vleratotale ASC";
$query1=mysqli_query($con,$kerkim);
//############
echo "<table border='2' class='table-fill' >
<thead>
<tr>
<th>Apartamenti </th>
<th>Dhoma </th>
<th>Kati …Run Code Online (Sandbox Code Playgroud)