{"id":58,"date":"2013-11-29T02:48:53","date_gmt":"2013-11-28T18:48:53","guid":{"rendered":"http:\/\/www.yptk.cn\/index.php\/2013\/11\/29\/%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9aasp%e4%b9%8b%e7%ac%ac%e5%85%ad%e5%a4%a9\/"},"modified":"2013-11-29T02:48:53","modified_gmt":"2013-11-28T18:48:53","slug":"%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9aasp%e4%b9%8b%e7%ac%ac%e5%85%ad%e5%a4%a9","status":"publish","type":"post","link":"http:\/\/yptk.cn\/index.php\/2013\/11\/29\/%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9aasp%e4%b9%8b%e7%ac%ac%e5%85%ad%e5%a4%a9\/","title":{"rendered":"\u5341\u5929\u5b66\u4f1aASP\u4e4b\u7b2c\u516d\u5929"},"content":{"rendered":"<p><span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u5b66\u4e60\u76ee\u7684\uff1a\u5b66\u4f1a\u6570\u636e\u5e93\u7684\u57fa\u672c\u64cd\u4f5c2\uff08\u67e5\u8be2\u8bb0\u5f55\uff09<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&nbsp;&nbsp;&nbsp; \u5728\u7b2c\u56db\u5929\u4e2d\u6211\u4eec\u6709\u8fd9\u6837\u4e00\u4e2a\u7a0b\u5e8f\uff1a<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&lt;%<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">set conn=server.createobject(&#8220;adodb.connection&#8221;)<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">conn.open &#8220;driver={microsoft access driver (*.mdb)};dbq=&#8221;&amp;server.mappath(&#8220;example3.mdb&#8221;)<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">exec=&#8221;select * from guestbook&#8221;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">set rs=server.createobject(&#8220;adodb.recordset&#8221;)<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">rs.open exec,conn,1,1&nbsp;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">%&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u6211\u4eec\u67e5\u8be2\u7684\u662f\u6240\u6709\u7684\u8bb0\u5f55\uff0c\u4f46\u662f\u6211\u4eec\u8981\u4fee\u6539\u3001\u5220\u9664\u8bb0\u5f55\u7684\u65f6\u5019\u4e0d\u53ef\u80fd\u662f\u6240\u6709\u8bb0\u5f55\uff0c\u6240\u6709\u6211\u4eec\u8981\u5b66\u4e60\u68c0\u7d22\u5408\u9002\u7684\u8bb0\u5f55\u3002\u5148\u770b\u4e00\u6761\u8bed\u53e5\uff1a<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">a=&#8221;\u5f20\u4e09&#8221;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">b=111&nbsp;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">exec=&#8221;select * from guestbook where name='&#8221;+a+&#8221;&#8216;and tel=&#8221;+b<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">where\u540e\u9762\u52a0\u4e0a\u7684\u662f\u6761\u4ef6\uff0c\u4e0e\u662fand\uff0c\u6216\u662for\uff0c\u6211\u60f3=\uff0c&lt;=\uff0c&gt;=\uff0c&lt;\uff0c&gt;\u7684\u542b\u4e49\u5927\u5bb6\u90fd\u77e5\u9053\u5427\u3002\u8fd9\u53e5\u8bdd\u7684\u610f\u601d\u5c31\u662f\u641c\u7d22name\u662f\u5f20\u4e09\u7684\uff0c\u5e76\u4e14\u7535\u8bdd\u662f111\u7684\u8bb0\u5f55\u3002\u8fd8\u6709\u4e00\u70b9\u5c31\u662f\u5982\u679c\u8981\u641c\u7d22\u4e00\u4e2a\u5b57\u6bb5\u91cc\u9762\u662f\u4e0d\u662f\u5305\u542b\u4e00\u4e2a\u5b57\u7b26\u4e32\u5c31\u53ef\u4ee5\u8fd9\u4e48\u5199\uff1awhere instr(name,a)\u4e5f\u5c31\u662f\u641c\u7d22name\u91cc\u9762\u6709a\uff08\u5f20\u4e09\uff09\u8fd9\u4e2a\u5b57\u7b26\u4e32\u7684\u4eba\u3002<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u6211\u8fd9\u91cc\u7684a,b,\u662f\u5e38\u91cf\uff0c\u5927\u5bb6\u53ef\u4ee5\u8ba9a,b\u662f\u8868\u5355\u63d0\u4ea4\u8fc7\u6765\u7684\u53d8\u91cf\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u505a\u4e00\u4e2a\u641c\u7d22\u4e86\u3002<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u4e0b\u9762\u5927\u5bb6\u770b\u770b\u8fd9\u4e2a\u4ee3\u7801\uff0c\u7406\u89e3\u4e00\u4e0b\uff1a<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&lt;form name=&#8221;form1&#8243; method=&#8221;post&#8221; action=&#8221;example6.asp&#8221;&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u641c\u7d22\uff1a&lt;br&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">name =<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&lt;input type=&#8221;text&#8221; name=&#8221;name&#8221;&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">and tel=&nbsp;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&lt;input type=&#8221;text&#8221; name=&#8221;tel&#8221;&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&lt;br&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&lt;input type=&#8221;submit&#8221; name=&#8221;Submit&#8221; value=&#8221;\u63d0\u4ea4&#8221;&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&lt;input type=&#8221;reset&#8221; name=&#8221;Submit2&#8243; value=&#8221;\u91cd\u7f6e&#8221;&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\" \/><\/p>\n<p>\n\t<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&lt;\/form&gt;<\/span>\n<\/p>\n<p>\n\t<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\"> <\/span>\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\texample6.asp\uff1a<br \/>\n&lt;%<br \/>\nname=request.form(&#8220;name&#8221;)<br \/>\ntel=request.form(&#8220;tel&#8221;)<br \/>\nset conn=server.createobject(&#8220;adodb.connection&#8221;)<br \/>\nconn.open &#8220;driver={microsoft access driver (*.mdb)};dbq=&#8221;&amp;server.mappath(&#8220;example3.mdb&#8221;)<br \/>\nexec=&#8221;select * from guestbook where name='&#8221;+name+&#8221;&#8216; and tel=&#8221;+tel<br \/>\nset rs=server.createobject(&#8220;adodb.recordset&#8221;)<br \/>\nrs.open exec,conn,1,1<br \/>\n%&gt;<br \/>\n&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;title&gt;\u65e0\u6807\u9898\u6587\u6863&lt;\/title&gt;<br \/>\n&lt;<i>meta<\/i>&nbsp;http-equiv=&#8221;Content-Type&#8221; content=&#8221;text\/html; charset=gb2312&#8243;&gt;<br \/>\n&lt;\/head&gt;&nbsp;<br \/>\n&lt;body bgcolor=&#8221;#FFFFFF&#8221; text=&#8221;#000000&#8243;&gt;&nbsp;<br \/>\n&lt;table width=&#8221;100%&#8221; border=&#8221;0&#8243; cellspacing=&#8221;0&#8243; cellpadding=&#8221;0&#8243;&gt;<br \/>\n&lt;%<br \/>\ndo while not rs.eof<br \/>\n%&gt;&lt;tr&gt;<br \/>\n&lt;td&gt;&lt;%=rs(&#8220;name&#8221;)%&gt;&lt;\/td&gt;<br \/>\n&lt;td&gt;&lt;%=rs(&#8220;tel&#8221;)%&gt;&lt;\/td&gt;<br \/>\n&lt;td&gt;&lt;%=rs(&#8220;message&#8221;)%&gt;&lt;\/td&gt;<br \/>\n&lt;td&gt;&lt;%=rs(&#8220;time&#8221;)%&gt;&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;%<br \/>\nrs.movenext<br \/>\nloop<br \/>\n%&gt;<br \/>\n&lt;\/table&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t\u4eca\u5929\u5b9e\u9645\u4e0a\u5c31\u8bb2\u4e86\u4e00\u4e2awhere\uff0c\u5927\u5bb6\u56de\u53bb\u505a\u505a\u8bd5\u9a8c\uff0c\u628ainstr()\u505a\u8fdb\u53bb\uff0c\u660e\u5929\u89c1\uff01\n<\/p>\n<p><\/p>\n<p>\n\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b66\u4e60\u76ee\u7684\uff1a\u5b66\u4f1a\u6570\u636e\u5e93\u7684\u57fa\u672c\u64cd\u4f5c2\uff08\u67e5\u8be2\u8bb0\u5f55\uff09 &nbsp;&nbsp;&nbsp; \u5728\u7b2c\u56db\u5929\u4e2d\u6211\u4eec\u6709\u8fd9\u6837\u4e00\u4e2a\u7a0b\u5e8f\uff1a &lt;% set conn=server.createobject(&#8220;adodb.connection&#8221;) conn.open &#8220;driver={microsoft access driver (*.mdb)};dbq=&#8221;&amp;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[15],"tags":[],"class_list":["post-58","post","type-post","status-publish","format-standard","hentry","category-15"],"_links":{"self":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/comments?post=58"}],"version-history":[{"count":0,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/58\/revisions"}],"wp:attachment":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/media?parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/categories?post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/tags?post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}