Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在php中删除表格单元格_Php - Fatal编程技术网

如何在php中删除表格单元格

如何在php中删除表格单元格,php,Php,我有3个字段,其中一个是我根据id选择的类型文件: $qryz="SELECT * FROM claims_follow_up.Reconciliation_Details where id_rd ='$id_rd' "; $res = mysqli_query($dbc, $qryz); $dd=mysqli_fetch_array($res); <label> Client Name</label> <input type="text"

我有3个字段,其中一个是我根据id选择的类型文件:

 $qryz="SELECT * FROM claims_follow_up.Reconciliation_Details where   id_rd ='$id_rd' ";
    $res = mysqli_query($dbc, $qryz);
  $dd=mysqli_fetch_array($res);

<label> Client Name</label> 
 <input type="text" name= "Client_Name"  value="<?=$dd['Client_Name']?></br>
 <label>Activity</label> 
 <input type="text" name= "Activity"  value="<?=$dd['Activity']?> " ></br>
<label>PDF_Report1</label> 
 <a href="uploads/<?php echo $dd['PDF_Report1'] ?>"  target="_blank"><?php echo $dd['PDF_Report1'] ?></a> 
  <?php echo '<a href="del_file.php?id_rd='.$dd['id_rd'].' " class="btn btn-primary btn-xs btn-danger" onclick="return confirm(\'Do you really want to delete this file ?\')"><i class="glyphicon glyphicon-trash"></i>Delete file #1</a>';?>

谢谢

您不能从单行中删除列,您可以
为整个表删除列
删除
整行或
更新
列值非常感谢您,我没有想到更新查询,我使用更新,这没关系。。
  $id_rd  = $_GET["id_rd"] ;  
 $sql="delete PDF_Report1 from claims_follow_up.Reconciliation_Details where id_rd = '$id_rd' ";