当前位置:首页
开发技术指南» 文章正文
    引言:

 ·php正则问题,望高手前来帮助    »显示摘要«
    摘要: 字符串替换: news.php?id=3&page=2 变为news_3_2.html news.php?id=3&page=3 变为news_4_3.html ...... 怎么做啊? ......
    摘要: 各位 请问在sql_server2000 中的数据库函数中,怎样才能返回一个为数组类型的值?谢谢! ......


[求助]这是记录的增加删除问题,新增的记录可以删除,而原有的两行却不能删除.请大家帮忙找一下原因,多谢

<html>  
  <head>  
  <title>Untitled   Document</title>  
  <meta   http-equiv="Content-Type"   content="text/html;   charset=gb2312">  
  </head>  
  <SCRIPT   language=javascript>  
  var   line=2  
  function   delIt()  
  {  
  line=parseInt(event.srcElement.ln,10)  
       
  if   (line>0)  
      for   (i=1;i<PLList.rows.length;i++)  
        if   (tdt.ln==line)  
        {  
          if   (   document.ecform.medication.value.length>0   )  
            if   (!confirm("Are   you   sure   you   want   to   delete   this   record?"))  
              return  
          PLList.deleteRow(i)  
        }  
  }  
  function   mouseOver()  
  {  
  event.srcElement.className="delMouseOver"  
  }  
  function   mouseOut()  
  {  
  event.srcElement.className="scheduleButtonVisible"  
  }  
   
  </script>  
   
  <body   bgcolor="#FFFFFF"   text="#000000">  
  <form   action=rktz6.asp   method   ="post">  
  <TABLE   id=fileinput1>  
      <tr>    
          <td><input   type="text"   name="a1"></td>  
  <td   bgcolor="#FFFFFF"><input   type="text"   name="a2"></td>  
  <td   bgcolor="#FFFFFF"><input   type="text"   name="a3"></td>  
  <td   bgcolor="#FFFFFF"><input   type="text"   name="a4"></td>  
  <td   ><input   type="text"   name="a5"></td>  
  <td><input   type=button   value=删除   class=cbutton   onClick=""DelFileInput(1)""></td></tr></TABLE>    
  <table   id=fileinput2>  
      <tr>    
          <td><input   type="text"   name="a1"></td>  
  <td   bgcolor="#FFFFFF"><input   type="text"   name="a2"></td>  
  <td   bgcolor="#FFFFFF"><input   type="text"   name="a3"></td>  
  <td   bgcolor="#FFFFFF"><input   type="text"   name="a4"></td>  
  <td   ><input   type="text"   name="a5"></td>  
  <td><input   type=button   value=删除   class=cbutton   onClick=""DelFileInput(2)""></td>  
  </tr>  
  </table>  
   
  <input   type="button"   name="add_line"   value="增加下一行"   onClick="AddFileInput()">  
  <script   language="VBScript">  
   
  NowFileInputNo   =   3  
  NowFileInputCount   =2  
  Sub   AddFileInput()  
      If   NowFileInputCount   <   10   Then  
      HTMLSrc   =   "<table   Id=FileInput"&   NowFileInputNo   &"><tr><td>   <input   type=""text""   name=""a1""></td><td><input   type=""text""   name=""a2""></td><td><input   type=""text""   name=""a3""></td><td><input   type=""text""   name=""a4""></td>"  
      HTMLSrc   =   HTMLSrc   &   "<td><input   type=""text""   name=""a5""><input   type=button   value=删除   class=cbutton   onClick=""DelFileInput("&   NowFileInputNo   &")""></td></tr></table>"&   vbcrlf  
   
        document.all.add_line.InsertAdjacentHTML   "beforeBegin",   HTMLSrc  
        NowFileInputNo   =   NowFileInputNo   +   1  
        NowFileInputCount   =   NowFileInputCount   +   1  
      Else  
        Alert   "增加太多记录行"  
      End   IF  
  End   Sub  
   
  Sub   DelFileInput(tableno)  
              document.all("FileInput"&   tableno).outerHTML   =   ""  
          NowFileInputCount   =   NowFileInputCount   -   1  
  End   Sub  
  </script>  
  <p><input   type="submit"   value="提交"   name="B1"><input   type="reset"   value="重置"   name="B2"></p>  
   
  </form>    
  </body>  
  </html>  
 

NO.1   作者: eastjazz

你试试看行不??  
   
  <html>  
  <head>  
  <title>Untitled   Document</title>  
  <meta   http-equiv="Content-Type"   content="text/html;   charset=gb2312">  
  </head>  
  <SCRIPT   language=javascript>  
  var   line=1  
  function   delIt()  
  {  
  line=parseInt(event.srcElement.ln,10)  
       
  if   (line>0)  
      for   (i=1;i<PLList.rows.length;i++)  
        if   (tdt.ln==line)  
        {  
          if   (   document.ecform.medication.value.length>0   )  
            if   (!confirm("Are   you   sure   you   want   to   delete   this   record?"))  
              return  
          PLList.deleteRow(i)  
        }  
  }  
  function   mouseOver()  
  {  
  event.srcElement.className="delMouseOver"  
  }  
  function   mouseOut()  
  {  
  event.srcElement.className="scheduleButtonVisible"  
  }  
   
  </script>  
   
  <body   bgcolor="#FFFFFF"   text="#000000">  
  <form   action=rktz6.asp   method   ="post">  
  <input   type="button"   name="add_line"   value="增加下一行"   onClick="AddFileInput()">  
  <script   language="VBScript">  
   
  NowFileInputNo   =   3  
  NowFileInputCount   =1  
  Sub   AddFileInput()  
      If   NowFileInputCount   <   10   Then  
      HTMLSrc   =   "<table   Id=FileInput"&   NowFileInputNo   &"><tr><td>   <input   type=""text""   name=""a1""></td><td><input   type=""text""   name=""a2""></td><td><input   type=""text""   name=""a3""></td><td><input   type=""text""   name=""a4""></td>"  
      HTMLSrc   =   HTMLSrc   &   "<td><input   type=""text""   name=""a5""><input   type=button   value=删除   class=cbutton   onClick=""DelFileInput("&   NowFileInputNo   &")""></td></tr></table>"&   vbcrlf  
   
        document.all.add_line.InsertAdjacentHTML   "beforeBegin",   HTMLSrc  
        NowFileInputNo   =   NowFileInputNo   +   1  
        NowFileInputCount   =   NowFileInputCount   +   1  
      Else  
        Alert   "增加太多记录行"  
      End   IF  
  End   Sub  
   
  Sub   DelFileInput(tableno)  
              document.all("FileInput"&   tableno).outerHTML   =   ""  
          NowFileInputCount   =   NowFileInputCount   -   1  
  End   Sub  
  </script>  
  <p><input   type="submit"   value="提交"   name="B1"><input   type="reset"   value="重置"   name="B2"></p>  
   
  </form>    
  </body>  
  </html>  
   
 


    摘要: sql = "select * from salerinfo where uid="&uid&"" rs.open sql,conn,1,1 quyu=left(replace(rs("quyu")," ",""),len(rs("quyu"))-1) q......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE