和山论坛

 找回密码
 会员注册
楼主: 小熊寶寶
打印 上一主题 下一主题

向广大人民群众求救!【已处理完了,多谢17号兄弟,偶朋友,师太,自己,还有老大】

[复制链接]
31
发表于 2008-7-15 14:56 | 只看该作者
汗......熊姐表给我发钱了, 太客气了, 我也没处花的, 水吧也是不是天天有人结婚......%@07
我也是没事干才做做的%@46
32
 楼主| 发表于 2008-7-15 14:58 | 只看该作者
应该的,那我有空请你吃冰淇淋吧%@03

这星期你应该还不回家吧
33
发表于 2008-7-15 15:00 | 只看该作者
%@02 %@02


怎么这么快


%@14 %@14

偶的程序刚刚编好

1.gif (36.62 KB, 下载次数: 11)

1.gif
34
 楼主| 发表于 2008-7-15 15:00 | 只看该作者
原帖由 安静的17号 于 2008-7-15 14:56 发表
汗......熊姐表给我发钱了, 太客气了, 我也没处花的, 水吧也是不是天天有人结婚......%@07
我也是没事干才做做的%@46



等你娶媳妇了,可以当聘礼%@54
35
发表于 2008-7-15 15:01 | 只看该作者
原帖由 小熊寶寶 于 2008-7-15 14:58 发表
应该的,那我有空请你吃冰淇淋吧%@03

这星期你应该还不回家吧


hehe客气了,不用请客滴, 以后有事也让你们帮忙么...%@59
36
 楼主| 发表于 2008-7-15 15:03 | 只看该作者
原帖由 cnlove 于 2008-7-15 15:00 发表
%@02 %@02


怎么这么快


%@14 %@14

偶的程序刚刚编好



怎末用的?%@54
这个帖子里只处理了1.6w ,还有好多呢%@54
37
发表于 2008-7-15 15:03 | 只看该作者
0.0%@04 %@04 %@04
程序都编出来了, 太牛了

有机会收我为徒吧, 也编个程序玩玩%@01
38
发表于 2008-7-15 15:04 | 只看该作者
%@52   那偶程序传给你 你叫LD 搞
要先将 xls 转化承 mdb
天涯不会就不叫天涯了
39
 楼主| 发表于 2008-7-15 15:04 | 只看该作者
原帖由 安静的17号 于 2008-7-15 15:01 发表


hehe客气了,不用请客滴, 以后有事也让你们帮忙么...%@59

好说好说%@55 ,只要我能做到,肯定么问题的%@58
40
发表于 2008-7-15 15:05 | 只看该作者
41
发表于 2008-7-15 15:09 | 只看该作者
徒弟就不收了哈


代码贴上自己看


  1. <!--#include file="conn.asp"-->
  2. <%
  3. set rs=conn.execute("select * from email order by id asc")
  4. if rs.bof and rs.eof then
  5. response.Write  "数据库怎么是空的?"
  6. else
  7. delid="0"
  8. do while not rs.eof
  9.   if len(split(rs(1),"@")(0))<4 then
  10.     delid=delid&","&rs(0)
  11. response.Write rs(1)&"已经删除.原因:<span style='color:red'>@前面不足四个字符</span><br />"
  12.   end if
  13.   
  14.   if ubound(split(rs(1),"@"))<>1 then
  15.     delid=delid&","&rs(0)
  16.     response.Write rs(1)&"已经删除.原因:<span style='color:red'>多个@ 或者没有@</span><br />"
  17.   else
  18.    if ubound(split(split(rs(1),"@")(1),"."))<1 or ubound(split(split(rs(1),"@")(1),"."))>4 then
  19.    delid=delid&","&rs(0)
  20.    response.Write "已经删除.原因:<span style='color:red'>@ 后面没有 '.' 或者 '.'数量过多</span><br />"
  21.    else
  22.    
  23.     if split(split(rs(1),"@")(1),".")(0)="56" or split(split(rs(1),"@")(1),".")(0)="" or split(split(rs(1),"@")(1),".")(1)="" then
  24.    delid=delid&","&rs(0)
  25.    response.Write rs(1)&"已经删除.原因:<span style='color:red'>56邮箱已经不能用了,@ 后面 . 前后 不能为空</span><br />"
  26.     end if
  27.    end if
  28.   end if
  29.   if instr(rs(1),"net")<1 and instr(rs(1),"org")<1 and instr(rs(1),"com")<1 and instr(rs(1),"cn")<1 and instr(rs(1),"edu")<1 and instr(rs(1),"gov")<1 and instr(rs(1),".")<1 then
  30.    delid=delid&","&rs(0)
  31.    response.Write rs(1)&"已经删除.原因:<span style='color:red'>这啥牌子的邮箱啊</span><br />"
  32.   end if
  33.   set rss=conn.execute("select * from email where id >"&rs(0)&" order by id asc")
  34.   if rss.bof and rss.eof then
  35.   else
  36.       if rss(1)=rs(1)then
  37.       delid=delid&","&rs(0)
  38.    response.Write rs(1)&"已经删除.原因:<span style='color:red'>重复的邮箱地址</span><br />"
  39.    end if
  40.   end if
  41. rs.movenext
  42. loop
  43. end if
  44. rs.close
  45. set rs=nothing
  46. conn.execute("delete from email where id in ("&delid&")")
  47. response.Write delid
  48. response.Write "删除 ok !"

  49. %>
复制代码


conn.asp

  1. <%
  2. dim conn  
  3. dim connstr  
  4. dim db   
  5. db = "sdf.mdb"
  6. connstr = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = " & Server.MapPath(db)
  7. Set conn  =  Server.CreateObject("ADODB.Connection")
  8. if err Then
  9. err.clear
  10. end if
  11. conn.Open connstr
  12. %>

复制代码

2.gif (263.02 KB, 下载次数: 13)

2.gif

3.gif (88.18 KB, 下载次数: 14)

3.gif

评分

参与人数 1和山币 +30 收起 理由
左手无名指 + 30 昨晚我就在想了,不过资历有限,没学过VB~~

查看全部评分

42
发表于 2008-7-15 15:13 | 只看该作者
偶只看得懂VB, MS有点像, 不过不是%@07
43
发表于 2008-7-15 15:15 | 只看该作者
%@52  这个比vb  还简单
叫做 vbscript
44
 楼主| 发表于 2008-7-15 15:16 | 只看该作者
原帖由 cnlove 于 2008-7-15 15:09 发表
徒弟就不收了哈


代码贴上自己看






像你附件里的3、7 邮件就不对了啊
45
发表于 2008-7-15 15:20 | 只看该作者
%@60 %@60  那个 。。。  偶想不到算法。。。
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则


浙江科技学院和山论坛|手机客户端|小黑屋|和山论坛

GMT+8, 2025-5-16 01:57 , Processed in 0.116492 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.2

© 2005-2019 和山论坛(www.hsbbs.com)

快速回复 返回顶部 返回列表