我有一个选择查询,它从表中提取数据并相应地显示它
$display_query= "select * from customer WHERE abc_mailing_list = '$abc' AND def_mailing_list ='$def' AND ghi_mailing_list = '$ghi' AND position_category IN($var) AND country_code='$country_cat' ORDER BY state";
$display_result=mysqli_query($dbc2,$display_query);
<table width = "100%"border="1" style="border-collapse: collapse;">
<tr style="background-color: #51626F; color: #FFFFFF;">
<th> S.No</th>
<th> First Name</th>
<th>Last Name</th>
<th>Position Category</th>
<th>State</th>
<th>Country</th>
<th>Title</th>
<th>Agency</th>
<th>Department</th>
</tr>
<?php
$colour2 = "transparent";
$colour1 = "#B1B0A7";
$count = 0;
$row_count = 0;
while($row=mysqli_fetch_assoc($display_result)){
$rowcolor = ($row_count % 2) ? $colour1 : $colour2;
$count++;
?>
<tr style="background: <? echo $rowcolor; ?>;">
<td width="10%" height="20"><? echo $count; ?></td>
<td width="10%" height="20"><? echo $row['first_name']; ?></td>
<td width="10%" height="20"><? echo $row['last_name']; ?></td>
<td width="10%" height="20"><? echo $row['position_category']; ?></td>
<td width="10%" height="20"><? echo $row['state']; ?></td>
<td width="10%" height="20"><? echo $row['country_code']; ?></td>
<td width="10%" height="20"><? echo $row['title']; ?></td>
<td width="10%" height="20"><? echo $row['agency']; ?></td>
<td width="10%" height="20"><? echo $row['department']; ?></td>
</tr>
<?
$row_count++;
}
?>
我的问题是我想让所有内容都可编辑,这样如果用户在返回的结果中发现一些错误,他应该可以选择编辑并保存它,以便可以将其保存在数据库中。有这个插件吗?如果这是一个微不足道的问题,我很抱歉,我是 PHP 新手。谢谢