{"id":223,"date":"2008-12-05T09:44:12","date_gmt":"2008-12-05T01:44:12","guid":{"rendered":""},"modified":"2014-02-27T23:00:24","modified_gmt":"2014-02-27T15:00:24","slug":"asp%e6%96%87%e7%ab%a0%e7%b3%bb%e7%bb%9f%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2008\/12\/05\/223.htm","title":{"rendered":"ASP\u6587\u7ae0\u7cfb\u7edf\u7684\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<p>\u3000&nbsp; \u8fd9\u4e2a\u65b9\u6848\u89e3\u51b3\u4e86\u663e\u793a&ldquo;\u4e0a\u4e00\u7bc7\u4e0b\u4e00\u7bc7&rdquo;\u548c\u76f8\u5173\u6587\u7ae0\u7684\u95ee\u9898\uff0c\u8d34\u51fa\u6765\u8ba9\u5927\u5bb6\u5206\u4eab\u3002<br \/>\n\u3000\u3000\u4ee5\u524d\u770b\u5230\u4e00\u4e2a\u5e16\u5b50\u8bb2\u7528ID+1\u548cID-1\u7684\u529e\u6cd5\u5224\u65ad&ldquo;\u4e0a\u4e00\u7bc7\u4e0b\u4e00\u7bc7&rdquo;\uff0c\u5728\u7528\u7684\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u4e00\u4e2a\u95ee\u9898\uff1a\u5f53\u5220\u9664\u6570\u636e\u5e93\u4e2d\u7684\u4e00\u7bc7\u6587\u7ae0\u65f6\uff0c\u5c31\u4f1a\u9020\u6210ID\u4e0d\u8fde\u7eed\uff0c\u5982\u679c\u7528ID+1\u548cID-1\u6765\u5224\u65ad\u5c31\u4f1a\u51fa\u73b0\u627e\u4e0d\u5230\u8bb0\u5f55\u7684\u95ee\u9898\uff0c\u5728\u8fd9\u4e2a\u7a0b\u5e8f\u91cc\uff0c\u901a\u8fc7\u67e5\u8be2<font color=\"#cc0000\">\u5927\u4e8e\u5f53\u524dID\u7684\u7b2c\u4e00\u6761\u8bb0\u5f55<\/font>\u6765\u627e\u51fa\u4e0b\u4e00\u7bc7\u7684ID\uff0c\u67e5\u8be2 <font color=\"#008000\"><font color=\"#990000\">\u5c0f\u4e8e\u5f53\u524dID\u7684\u7b2c\u4e00\u6761\u8bb0\u5f55<\/font> <\/font>\u6765\u627e\u51fa\u4e0a\u4e00\u7bc7\u7684ID\uff0c\u8fd9\u6837\u5c31\u7b97ID\u4e0d\u8fde\u7eed\u4e5f\u53ef\u4ee5\u6b63\u5e38\u663e\u793a\u4e86\u3002<br \/>\n\u3000\u3000\u81f3\u4e8e\u76f8\u5173\u6587\u7ae0\u7684\u663e\u793a\u5219\u662f\u5728\u6570\u636e\u8868\u91cc\u6dfb\u52a0\u4e00\u4e2aboardid\u5b57\u6bb5\u6765\u533a\u5206\u4e0d\u540c\u7684\u6587\u7ae0\u680f\u76ee\uff0c\u5728\u6bcf\u6b21\u6dfb\u52a0\u4e00\u7bc7\u65b0\u6587\u7ae0\u65f6\u52a0\u4e0aboardid\u53f7\u5c31\u53ef\u4ee5\u4e86\uff0c\u663e\u793a\u4e00\u7bc7\u6587\u7ae0\u65f6\u6839\u636eboardid\u6765\u67e5\u8be2\u6570\u636e\u5e93\u5c31\u80fd\u663e\u793a\u51fa\u76f8\u5173\u6587\u7ae0\u3002<br \/>\n\u3000\u3000\u6570\u636e\u8868articles\u4e2d\u7684\u5b57\u6bb5\u6709id,boardid,title,content,author,addtime\u3002<\/p>\n<p>\u4ee3\u7801\u62f7\u8d1d\u6846<\/p>\n<table cellspacing=\"0\" cellpadding=\"6\" width=\"95%\" align=\"center\" border=\"0\" style=\"border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted\">\n<tbody>\n<tr>\n<td bgcolor=\"#f3f3f3\" style=\"word-wrap: break-word\"><font style=\"font-weight: bold; color: #990000\">\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/font><br \/>\n            <font face=\"Verdana\">&lt;!&#8211;\u7a0b\u5e8f\u5f00\u59cb&#8211;&gt;<br \/>\n            `\u5b9a\u4e49\u4e00\u4e2athenext\u51fd\u6570\u6765\u627e\u51fa\u4e0b\u4e00\u7bc7\u7684ID\uff0c\u5982\u679c\u5f53\u524d\u8bb0\u5f55\u5df2\u7ecf\u662f\u6700\u540e\u4e00\u6761\u8bb0\u5f55\uff0c\u5219\u8f93\u51fa\u6587\u5b57&ldquo;\u6ca1\u6709\u4e86&rdquo;<br \/>\n            &lt;% <br \/>\n            function thenext<br \/>\n            newrs=server.CreateObject(&quot;adodb.recordset&quot;)<br \/>\n            sql=&quot;select top 1 * from articles where id&gt;&quot;&amp;a1&amp;&quot; order by id&quot;<br \/>\n            set newrs=conn.execute(sql)<br \/>\n            if newrs.eof then<br \/>\n            response.Write(&quot;\u6ca1\u6709\u4e86&quot;)<br \/>\n            else<br \/>\n            a2=newrs(&quot;id&quot;)<br \/>\n            response.Write(&quot;&lt;a href=&#8217;view.asp?id=&quot;&amp;a2&amp;&quot;&#8217;&gt;\u4e0b\u4e00\u7bc7&lt;\/a&gt;&quot;)<br \/>\n            end if<br \/>\n            end function<br \/>\n            %&gt;<br \/>\n            `\u5b9a\u4e49\u4e00\u4e2athehead\u51fd\u6570\u6765\u627e\u51fa\u4e0b\u4e00\u7bc7\u7684ID\uff0c\u5982\u679c\u5f53\u524d\u8bb0\u5f55\u5df2\u7ecf\u662f\u6700\u524d\u9762\u7684\u4e00\u6761\u8bb0\u5f55\uff0c\u5219\u8f93\u51fa\u6587\u5b57&ldquo;\u6ca1\u6709\u4e86&rdquo;<br \/>\n            &lt;% <br \/>\n            function thehead<br \/>\n            headrs=server.CreateObject(&quot;adodb.recordset&quot;)<br \/>\n            sql=&quot;select top 1 * from articles where id&lt;&quot;&amp;a1&amp;&quot; order by id desc&quot;<br \/>\n            set headrs=conn.execute(sql)<br \/>\n            if headrs.eof then<br \/>\n            response.Write(&quot;\u6ca1\u6709\u4e86&quot;)<br \/>\n            else<br \/>\n            a0=headrs(&quot;id&quot;)<br \/>\n            response.Write(&quot;&lt;a href=&#8217;view.asp?id=&quot;&amp;a0&amp;&quot;&#8217;&gt;\u4e0a\u4e00\u7bc7&lt;\/a&gt;&quot;)<br \/>\n            end if<br \/>\n            end function<br \/>\n            %&gt;<br \/>\n            `\u6570\u636e\u5e93\u8fde\u63a5\u6587\u4ef6<br \/>\n            &lt;!&#8211;#include file=&quot;conn.asp&quot;&#8211;&gt;<br \/>\n            `\u53d6\u5f97\u4f20\u9012\u8fc7\u6765\u7684ID\uff0c\u663e\u793a\u6587\u7ae0\u6807\u9898\u4f5c\u8005\u548c\u5185\u5bb9<br \/>\n            &lt;% <br \/>\n            id=request(&quot;id&quot;) <br \/>\n            sql=&quot;select * from articles where id=&quot;&amp;id<br \/>\n            set rs=conn.execute(sql)<br \/>\n            %&gt;<br \/>\n            &lt;% boardid=rs(&quot;boardid&quot;) %&gt;<br \/>\n            &lt;title&gt;\u6587\u7ae0\u7cfb\u7edf-&lt;% =rs(&quot;title&quot;) %&gt;&lt;\/title&gt;&lt;body leftmargin=&quot;0&quot; topmargin=&quot;0&quot;&gt;<br \/>\n            &lt;!&#8211;#include file=&quot;top.asp&quot; &#8211;&gt;<br \/>\n            &lt;%<br \/>\n            Do While Not rs.EOF<br \/>\n            %&gt; <br \/>\n            &lt;table width=&quot;773&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; align=&quot;center&quot;&gt;<br \/>\n            &lt;tr&gt; <br \/>\n            &lt;td width=&quot;576&quot; align=&quot;left&quot;&gt;<br \/>\n            &lt;table width=&quot;557&quot; border=&quot;0&quot; cellspacing=&quot;5&quot; cellpadding=&quot;4&quot; align=&quot;left&quot;&gt;<br \/>\n            &lt;tr&gt; <br \/>\n            &lt;td colspan=&quot;2&quot; align=&quot;center&quot;&gt;&lt;span style=&quot;font-size:9pt color:#efefef&quot;&gt;&lt;%= rs(&quot;title&quot;) %&gt;&lt;br&gt;<br \/>\n            &lt;div align=&quot;right&quot;&gt;&lt;span style=&quot;font-size:9pt color:#efefef&quot;&gt;\u4f5c\u8005\uff1a&lt;%= rs(&quot;author&quot;) %&gt;&lt;\/span&gt;&lt;\/div&gt;<br \/>\n            &lt;\/span&gt;&lt;\/td&gt;<br \/>\n            &lt;\/tr&gt;<br \/>\n            &lt;tr&gt; <br \/>\n            &lt;td colspan=&quot;2&quot; &gt;&lt;span style=&quot;font-size:9pt color:#efefef&quot;&gt;&lt;!&#8211;\u5c06\u6570\u636e\u5e93\u7684\u8d44\u6599\u53d6\u51fa\uff0c\u7ecf\u8fc7\u7f16\u7801\u540e\u8f93\u51fa\uff0c\u4fdd\u6301\u8f93\u5165\u65f6\u7684\u683c\u5f0f\u4e0d\u53d8&#8211;&gt;&lt;%= replace(server.HTMLEncode(rs(&quot;content&quot;)),chr(13),&quot;&lt;br&gt;&quot;) %&gt;&lt;\/span&gt;&lt;\/td&gt;<br \/>\n            &lt;\/tr&gt;<br \/>\n            &lt;% a1=rs(&quot;id&quot;) %&gt;<br \/>\n            &lt;tr&gt; <br \/>\n            &lt;td width=&quot;269&quot; align=&quot;right&quot;&gt;&lt;!&#8211;\u8c03\u7528\u524d\u9762\u5b9a\u4e49\u7684\u663e\u793a\u4e0a\u4e00\u7bc7\u7684\u51fd\u6570&#8211;&gt;&lt;% thehead %&gt;&lt;\/td&gt;<br \/>\n            &lt;td width=&quot;257&quot; align=&quot;right&quot;&gt;&lt;!&#8211;\u8c03\u7528\u524d\u9762\u5b9a\u4e49\u7684\u663e\u793a\u4e0b\u4e00\u7bc7\u7684\u51fd\u6570&#8211;&gt;&lt;% thenext %&gt;&lt;\/td&gt;<br \/>\n            &lt;\/tr&gt;<br \/>\n            &lt;% rs.MoveNext%&gt;<br \/>\n            &lt;%Loop%&gt;<br \/>\n            &lt;\/table&gt;&lt;\/td&gt;<br \/>\n            &lt;td width=&quot;217&quot; valign=&quot;top&quot; align=&quot;left&quot;&gt;\u76f8\u5173\u6587\u7ae0\uff1a <br \/>\n            `\u6839\u636e\u5f53\u524d\u6587\u7ae0\u7684\u680f\u76ee\u53f7\uff0c\u627e\u51fa\u540c\u4e00\u680f\u76ee\u7684\u6587\u7ae0 <br \/>\n            &lt;% <br \/>\n            &nbsp;&nbsp;&nbsp; sql=&quot;select * from articles where boardid=&quot;&amp;boardid&amp;&quot;&quot; <br \/>\n            &nbsp;&nbsp;&nbsp; set rs=conn.execute(sql)<br \/>\n            &nbsp;&nbsp;&nbsp; %&gt; <br \/>\n            &nbsp;&nbsp;&nbsp; &lt;%<br \/>\n            Do While Not rs.EOF<br \/>\n            %&gt;<br \/>\n            &nbsp;&nbsp;&nbsp; &lt;table width=&quot;207&quot; border=&quot;0&quot; cellspacing=&quot;2&quot; cellpadding=&quot;2&quot;&gt;<br \/>\n            &lt;tr&gt;<br \/>\n            &lt;td height=&quot;20&quot;&gt;&lt;a href=&quot;view.asp?id=&lt;%=rs(&quot;id&quot;)%&gt;&quot;&gt;&lt;%= rs(&quot;title&quot;) %&gt;&lt;\/a&gt;&lt;\/td&gt;<br \/>\n            &lt;\/tr&gt;<br \/>\n            &lt;\/table&gt;<br \/>\n            &lt;% rs.MoveNext%&gt;<br \/>\n            &lt;%Loop%&gt; <br \/>\n            &lt;\/td&gt;<br \/>\n            &lt;\/tr&gt;<br \/>\n            &lt;\/table&gt;<br \/>\n            &lt;!&#8211;#include file=&quot;copyright.asp&quot; &#8211;&gt;<br \/>\n            &lt;\/body&gt;<br \/>\n            &lt;!&#8211;\u7a0b\u5e8f\u7ed3\u675f&#8211;&gt;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u3000&nbsp; \u8fd9\u4e2a\u65b9\u6848\u89e3\u51b3\u4e86\u663e\u793a&ldquo;\u4e0a\u4e00\u7bc7\u4e0b\u4e00\u7bc7&rdquo;\u548c\u76f8\u5173\u6587\u7ae0\u7684\u95ee\u9898\uff0c\u8d34\u51fa\u6765\u8ba9\u5927\u5bb6\u5206\u4eab\u3002 \u3000\u3000\u4ee5\u524d\u770b\u5230\u4e00\u4e2a\u5e16\u5b50\u8bb2\u7528ID+1\u548cID-1\u7684\u529e\u6cd5\u5224\u65ad&ldquo;\u4e0a\u4e00\u7bc7\u4e0b\u4e00\u7bc7&rdquo;\uff0c\u5728\u7528\u7684\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u4e00\u4e2a\u95ee\u9898\uff1a\u5f53\u5220\u9664\u6570&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-223","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=223"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":66080,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/223\/revisions\/66080"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=223"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}