内容如下··<div id="main">
  <h2 class="top_title"><a href="http://www.xx.html">11月30日的
</a></h2>
  <div class="msg"><strong>提示</strong>11月30</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <thead>
    <tr class="table_title">
      <td colspan="14"><span class="open"></span>客户信息</td>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td width="10%" class="table_label">订货日期</td>
      <td width="5%" class="edit" id="username"><?php echo $username; ?></td>
      <td width="5%" class="table_label">快递</td>
      <td width="3%" class="edit" id="phone"><?php echo $phone; ?></td>
      <td width="5%" class="table_label">单号</td>
      <td width="9%" class="edit" id="solutation"><?php echo $solutation; ?></td>
      <td width="8%" class="table_label">发件时间</td>
      <td width="5%" class="edit" id="mobile"><?php echo $mobile; ?></td>
      <td width="5%" class="table_label">类别</td>
      <td width="10%" class="edit" id="email"><?php echo $mobile; ?></td>
      <td width="5%" class="table_label">单号</td>
      <td width="10%" class="edit" id="job"><?php echo $mobile; ?></td>
      <td width="5%" class="table_label">客户</td>
      <td width="10%" class="edit" id="source"><?php echo $mobile; ?></td>
    </tr>
    <tr>
      <td class="table_label">备注</td>
      <td class="textarea" id="note" colspan="3"><?php echo $note; ?></td>
      </tr>
  </tbody>
</table>数据库中表名是     Structure customerid 从1 开始。。我想再底部加一个连接,《增加新信息》  点了之后在数据库  在PHP页面和数据库自动生成一个新的一行数据库ID增加1  变成2应该怎么写呢··

解决方案 »

  1.   

    你把表格里的数据取出来后post到后台一个处理方法,插入insert一条数据。
    或者用ajax提交。
      

  2.   

    你是想form提交还是ajax提交 
      

  3.   

    这样吧。。太复杂了我现在只想,,
          <td width="5%" class="edit" id="username"><?php echo $username; ?></td>
          <td width="3%" class="edit" id="phone"><?php echo $phone; ?></td>
          <td width="9%" class="edit" id="solutation"><?php echo $solutation; ?></td>
          <td width="5%" class="edit" id="mobile"><?php echo $mobile; ?></td>
          <td width="10%" class="edit" id="email"><?php echo $mobile; ?></td>
          <td width="10%" class="edit" id="job"><?php echo $mobile; ?></td>
          <td width="10%" class="edit" id="source"><?php echo $mobile; ?></td>
    比如这个。。我让他调用数据库里 ID 第三行的数据  应该怎么写呢