Home > Backend Development > PHP Tutorial > PHP怎么点击按钮 使得表格中的内容可以修改

PHP怎么点击按钮 使得表格中的内容可以修改

WBOY
Release: 2016-06-13 10:31:55
Original
1168 people have browsed it

PHP怎样点击按钮 使得表格中的内容可以修改
我在一个表格中加入了复选框 ,下面有个“删除”按钮,选中复选框,点击删除后,便可删除选中的内容,现在想加一个“修改”按钮,就是选中一个记录,点击“删除”,该记录对应的“进度”变为文本框,可以修改,并能保存,怎么实现啊?代码如下:



 
    $con = mysql_connect("localhost","root","123");
  mysql_select_db("project_manage", $con);
  $sql=mysql_query("select * from project_info");
  $info=mysql_fetch_array($sql);
  do {
  ?>
 
 
 
 
 
    }while($info=mysql_fetch_array($sql));
  ?>
 
 
选项 项目编号 进度
 
 
 



------解决方案--------------------
参考该贴#3内容:http://topic.csdn.net/u/20120628/08/07a61dad-08f7-4621-92e5-4279ae5dff07.html?90134
------解决方案--------------------
怎么可能呢,你加载jQuery函数库了没有?

选中checkbox并点击edit后,td中将加入input输入框:

------解决方案--------------------
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template