{"id":68,"date":"2013-12-03T03:03:43","date_gmt":"2013-12-02T19:03:43","guid":{"rendered":"http:\/\/www.yptk.cn\/index.php\/2013\/12\/03\/%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9aphp%e4%b9%8b%e7%ac%ac%e5%85%ad%e5%a4%a9\/"},"modified":"2013-12-03T03:03:43","modified_gmt":"2013-12-02T19:03:43","slug":"%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9aphp%e4%b9%8b%e7%ac%ac%e5%85%ad%e5%a4%a9","status":"publish","type":"post","link":"http:\/\/yptk.cn\/index.php\/2013\/12\/03\/%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9aphp%e4%b9%8b%e7%ac%ac%e5%85%ad%e5%a4%a9\/","title":{"rendered":"\u5341\u5929\u5b66\u4f1aphp\u4e4b\u7b2c\u516d\u5929"},"content":{"rendered":"<p><strong style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\u5b66\u4e60\u76ee\u7684\uff1a<\/strong><span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u5b66\u4f1a\u6dfb\u52a0\u5220\u9664\u4fee\u6539\u6570\u636e<\/span><\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t<strong>&nbsp;&nbsp;<\/strong>mysql_query($exec);<br \/>\n<strong>&nbsp;&nbsp;<\/strong><br \/>\n<strong>&nbsp;&nbsp;<\/strong>\u5355\u8fd9\u4e2a\u8bed\u53e5\u5c31\u53ef\u4ee5\u6267\u884c\u6240\u6709\u7684\u64cd\u4f5c\u4e86\uff0c\u4e0d\u540c\u7684\u5c31\u662f$exec\u8fd9\u4e2asql\u8bed\u53e5\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t<strong>&nbsp; \u6dfb\u52a0\uff1a<\/strong>$exec=&#8221;insert into tablename (item1,item2) values (&#8216;&#8221;.$_POST[&#8216;item1&#8217;].&#8221;&#8216;,&#8221;.$_POST[&#8216;item1&#8217;].&#8221;)&#8221;;\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t<strong>&nbsp; \u5220\u9664\uff1a<\/strong>$exec=&#8221;delete from tablename where&#8230;&#8221;;\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t<strong>&nbsp; \u4fee\u6539\uff1a<\/strong>$exec=&#8221;update tablename set item1='&#8221;.$_POST[&#8216;item1&#8217;].&#8221;&#8216; where &#8230;&#8221;;\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t<strong>&nbsp;&nbsp;<\/strong>\u8bf4\u5230\u8fd9\u91cc\u5c31\u8981\u8bf4\u4e00\u4e0b\u8868\u5355\u548cphp\u53d8\u91cf\u4f20\u9012\uff0c\u5982\u679c\u8868\u5355\u4e2d\u7684\u4e00\u4e2a &lt;input name=&#8221;item1&#8243; type=&#8221;text&#8221; id=&#8221;item1&#8243;&gt;<br \/>\n\u8868\u5355\u4ee5POST\u63d0\u4ea4\u7684\uff0c\u90a3\u4e48\u5904\u7406\u8868\u5355\u6587\u4ef6\u5c31\u53ef\u4ee5\u7528$_POST[&#8216;item1&#8217;]\u5f97\u5230\u53d8\u91cf\u503c\uff0c\u540c\u6837\u4ee5GET\u63d0\u4ea4\u7684\u5c31\u662f$_GET[&#8216;item1&#8217;]\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t<strong>&nbsp;&nbsp;<\/strong>\u662f\u4e0d\u662f\u5f88\u7b80\u5355\uff1f\u4f46\u662f\u901a\u5e38$exec\u4f1a\u6709\u95ee\u9898\uff0c\u56e0\u4e3a\u53ef\u80fd\u60a8\u7684SQL\u8bed\u53e5\u4f1a\u5f88\u957f\uff0c\u60a8\u4f1a\u9057\u6f0f.\u8fde\u63a5\u7b26\uff0c\u6216\u8005&#8217;\u6765\u5305\u56f4\u5b57\u7b26\u578b\u5b57\u6bb5\u3002<br \/>\n<strong>&nbsp;&nbsp;<\/strong>\u6211\u4eec\u53ef\u4ee5\u6ce8\u91camysql_query($exec);\u8bed\u53e5\u7528echo $exec;\u4ee3\u66ff\u6765\u8f93\u51fa$exec\u4ee5\u68c0\u67e5\u6b63\u786e\u6027\u3002\u5982\u679c\u60a8\u8fd8\u4e0d\u80fd\u5bdf\u89c9$exec\u6709\u4ec0\u4e48\u9519\u8bef\u7684\u8bdd\uff0c\u53ef\u4ee5\u590d\u5236\u8fd9\u4e2asql\u8bed\u53e5\u5230phpmyadmin\u4e2d\u6267\u884c\uff0c\u770b\u770b\u5b83\u7684\u51fa\u9519\u4fe1\u606f\u3002\u8fd8\u6709\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u6211\u4eec\u4e0d\u8981\u4f7f\u7528\u4e00\u4e9b\u654f\u611f\u7684\u5b57\u7b26\u4e32\u4f5c\u4e3a\u5b57\u6bb5\u540d\u5b57\uff0c\u5426\u5219\u5f88\u53ef\u80fd\u4f1a\u51fa\u73b0\u95ee\u9898\uff0c\u6bd4\u5982\u8bf4date\u4ec0\u4e48\u7684\u3002\u53d8\u91cf\u7684\u547d\u540d\uff0c\u5b57\u6bb5\u7684\u547d\u540d\u9075\u5faa\u4e00\u70b9\u89c4\u5f8b\u6709\u7684\u65f6\u5019\u5bf9\u81ea\u5df1\u662f\u4e00\u79cd\u597d\u5904\uff0c\u521d\u5b66\u8005\u5e76\u4e0d\u53ef\u5ffd\u89c6\u5176\u91cd\u8981\u6027\u3002\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t<strong>&nbsp;&nbsp;<\/strong>\u4eca\u5929\u5c31\u8bf4\u5230\u8fd9\u91cc\uff0c\u5927\u5bb6\u53ef\u4ee5DOWN\u4e00\u4e2aSQL\u8bed\u53e5\u7684\u53c2\u8003\u624b\u518c\uff0c\u518d\u7814\u7a76\u7814\u7a76\u3002\u660e\u5929\u7ee7\u7eed\u8bf4SESSION\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b66\u4e60\u76ee\u7684\uff1a\u5b66\u4f1a\u6dfb\u52a0\u5220\u9664\u4fee\u6539\u6570\u636e &nbsp;&nbsp;mysql_query($exec); &nbsp;&nbsp; &nbsp;&nbsp;\u5355\u8fd9\u4e2a\u8bed\u53e5\u5c31\u53ef\u4ee5\u6267\u884c\u6240\u6709\u7684\u64cd\u4f5c\u4e86\uff0c\u4e0d\u540c\u7684\u5c31\u662f$exec\u8fd9\u4e2asql\u8bed\u53e5 &nbsp; \u6dfb\u52a0\uff1a$exec=&#8221;insert into tablename (item1,item2) values (&#8216;&#8221;.$_POST[&#038;#8 [&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-68","post","type-post","status-publish","format-standard","hentry","category-15"],"_links":{"self":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/68","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=68"}],"version-history":[{"count":0,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"wp:attachment":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}