PHP+ajax实现可以编辑的单元格点击可以修改
数据库结构
代码如下 | 复制代码 |
-- phpMyAdmin SQL Dump SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- -------------------------------------------------------- -- CREATE TABLE IF NOT EXISTS `customer` ( -- INSERT INTO `customer` (`id`, `username`, `solutation`, `phone`, `company`, `mobile`, `source`, `sdate`, `job`, `web`, `email`, `createtime`, `modifiedtime`, `note`) VALUES |
php代码
代码如下 | 复制代码 |
<?php $(".edit_email").editable('save.php', { <body>
|
sava.php代码
代码如下 | 复制代码 |
<?php $field=$_POST['id']; $val=$_POST['value']; |
例下载地址:http://file.zzzyk.com/download/2013/05/16/3788_72817.rar
补充:Php教程,Php应用