{"id":96357,"date":"2020-04-15T05:52:53","date_gmt":"2020-04-14T21:52:53","guid":{"rendered":"http:\/\/4563.org\/?p=96357"},"modified":"2020-04-15T05:52:53","modified_gmt":"2020-04-14T21:52:53","slug":"mysqli_query-%e7%9a%84%e6%93%8d%e4%bd%9c%e4%b8%ba%e4%bb%80%e4%b9%88%e8%bf%99%e4%b9%88%e8%bf%b7%ef%bc%9f%ef%bc%9f-%e5%92%8c%e7%9a%84%e5%8c%ba%e5%88%ab%ef%bc%9f%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=96357","title":{"rendered":"mysqli_query \u7684\u64cd\u4f5c\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u8ff7\uff1f\uff1f `\u548c&#8217;\u7684\u533a\u522b\uff1f\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  mysqli_query \u7684\u64cd\u4f5c\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u8ff7\uff1f\uff1f `\u548c&#8217;\u7684\u533a\u522b\uff1f\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lysS <\/span>  <span><i><\/i> 54<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u641e\u641e\u6570\u636e\u5e93 \u6309\u7167\u8bf4\u660e\uff1a<\/p>\n<pre><code>$Results=mysqli_query($link_handle,\"INSERT INTO test ('ID', 'name') VALUES ('555', '\u554a\u554a')\"); <\/code><\/pre>\n<p>\u65e0\u8bba\u600e\u6837\u90fd\u4e0d\u884c<br \/> \u6700\u540e\u6253\u5f00 PHPAdmin\uff0c\u64cd\u4f5c\u540e\u4f1a\u5c55\u793a\u76f8\u5e94\u7684\u547d\u4ee4<\/p>\n<pre><code>$Results=mysqli_query($link_handle,\"INSERT INTO test (`ID`, `name`) VALUES ('555', '\u554a\u554a')\"); <\/code><\/pre>\n<p>\u770b\u4e86\u4e24\u904d\uff0c\u662f`\u548c&#8217;\u7684\u533a\u522b<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>18<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"865334\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lysS <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6240\u4ee5\u6709\u4e86\u89e3\u7684\u5417\uff1f\u597d\u50cf\u5b57\u6bb5\u5fc5\u987b\u662f`\uff1b\u5b57\u6bb5\u7684\u503c`\u548c&#8217;\u90fd\u884c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865335\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : GM <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53cd\u5f15\u53f7 ` \u662f\u7528\u6765\u628a\u201c\u540d\u79f0\u201d\u2014\u2014\u6bd4\u5982\u8868\u540d\u3001\u5b57\u6bb5\u540d\u2014\u2014\u62ec\u8d77\u6765\uff0c\u5728\u201c\u540d\u79f0\u201d\u4e3a\u4fdd\u7559\u5b57\u7684\u65f6\u5019\u4f1a\u9700\u8981\u7528\u5230\uff0c\u4e0d\u7136 sql \u8bed\u53e5\u4e0d\u5408\u6cd5\u3002<\/p>\n<p>\u5355\u5f15\u53f7 &#8216; \u662f\u7528\u6765\u628a\u5b57\u7b26\u4e32\u62ec\u8d77\u6765\uff0c\u8fd9\u4e2a\u662f sql \u6807\u51c6\uff0c\u4f46\u662f mysql \u540c\u65f6\u652f\u6301\u5355\u5f15\u53f7 &#8216; \u6216\u8005\u53cc\u5f15\u53f7 &#8221; \uff0c\u90fd\u53ef\u4ee5\u7528\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865336\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : b821025551b <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u8fd9\u95ee\u9898\u4e5f\u5f88\u8ff7\u3002\u3002\u3002\u6570\u636e\u5e93\u76f8\u5173\u8bfe\u7a0b\u524d\u51e0\u8282\u57fa\u672c\u90fd\u662f\u8bb2\u8fd9\u7c7b\u7b26\u53f7\u7684\u7528\u6cd5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865337\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : charlie21 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5317\u4eac\u540c\u4ec1\u5802\u533b\u9662\u4e13\u4e1a\u914d\u773c\u955c 1000 \u5e74                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865338\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lysS <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @GM \u67e5\u4e86\u4e0b\u5927\u6982\u4e86\u89e3\uff0c\u4fdd\u7559\u5b57\u7684\u95ee\u9898\uff0c\u7c7b\u4f3c\u8f6c\u4e49\u8981\u8d4b\u4e88\u5176\u7279\u6b8a\u542b\u4e49\uff0c\u8868\u540d\u548c\u5b57\u6bb5\u540d\u90fd\u7528\u53cd\u5f15\u53f7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865339\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lysS <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @b821025551b \u4e0d\u662f\u8fd9\u4e2a\u4e13\u4e1a\u7684\uff0c\u6ca1\u6709\u7cfb\u7edf\u5b66\u4e60                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865340\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : phpfpm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u6839 mysqli \u6709\u5565\u5173\u7cfb emm                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865341\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lysS <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @phpfpm \u5176\u5b9e\u662f\u8bf4\u7684 DML \u7684\u4e8b?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865342\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : choury <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lysS \u8fd9\u5c31\u662f SQL \u7684\u8bed\u6cd5\uff0c\u4f60\u4e0d\u7ba1\u6362\u4ec0\u4e48\u6570\u636e\u5e93\u53ea\u8981\u7528 SQL \u8bed\u8a00\u90fd\u8fd9\u6837\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865343\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ragnaroks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7b80\u5355\u8bf4, `key`=&gt;&#8217;value&#8217;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865344\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : msg7086 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5efa\u8bae\u5165\u95e8\u4e00\u4e0b\u6570\u636e\u5e93\uff0cSQL \u7684\u90a3\u90e8\u5206\uff0c\u7136\u540e\u518d\u770b\u770b MySQL \u7684\u65b9\u8a00\u90e8\u5206\uff0c\u7136\u540e\u518d\u5f00\u59cb\u5199\u4ee3\u7801\u3002\u4e0d\u8981\u5c0f\u770b\u6253\u57fa\u7840\u7684\u4f5c\u7528\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865345\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : iyaozhen <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865346\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : iyaozhen <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @iyaozhen \u63a8\u8350\u4e00\u672c\u4e66\uff0cMySQL \u5fc5\u77e5\u5fc5\u4f1a\uff0c\u4e13\u95e8\u9762\u5411\u5199 sql \u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865347\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : edk24 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             `\u53cd\u5355\u5f15\u53f7\u662f\u7528\u4e8e\u5b57\u6bb5\u3001\u8868\u540d\u7684\u3002 \u6bd4\u5982\u4f60\u65b0\u5efa\u4e00\u4e2a select \u8868\uff0cselect \u662f mysql \u5173\u952e\u5b57\u3002 \u4f60\u5c31\u5fc5\u987b\u52a0\u53cd\u5355\u5f15\u53f7\u7528\u4e8e\u533a\u5206\u3002<\/p>\n<p>\u2018\u5355\u5f15\u53f7\u7528\u4e8e\u4fdd\u5b58\u6587\u672c\u7c7b\u578b\u503c\u7684<\/p>\n<p>\u793a\u4f8b\uff1a<br \/>&#8220;`<br \/>UPDATE `select` SET `title` = &#8216;v2ex&#8217; WHERE id = 1<br \/>&#8220;`                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865348\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xcstream <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ca1\u6709\u6b67\u4e49\u7684\u8bdd \u5b57\u6bb5\u53ef\u4ee5\u4e0d\u52a0\u5f15\u53f7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865349\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pululin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             sql \u600e\u4e48\u5b66\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865350\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : markgor <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9019\u500b\u548c mysqli_query \u6c92\u591a\u5927\u95dc\u4fc2\u5427&#8230;<br \/>mysql \u6b04\u4f4d\u6b63\u5e38\u5beb\u6cd5\u5c31\u662f&#8220;,<br \/>sqlserver[];<\/p>\n<p>\u7136\u5f8c\u63d2\u5165\u7684\u5b57\u7b26 &#8221;\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"865351\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lysS <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @iyaozhen <br \/>@msg7086 <br \/>\u901a\u4fe1\u5de5\u7a0b\u4e13\u4e1a\u7684\uff0c\u6709\u4e2a\u5927\u521b\u9700\u8981\u641e\u4e00\u4e0b\uff0c\u5c31\u76f4\u63a5\u4e0a\u7684\u4ee3\u7801\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>mysqli_query \u7684\u64cd\u4f5c\u4e3a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/96357"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=96357"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/96357\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=96357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=96357"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=96357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}