<br />
<b>Warning</b>:  Undefined array key "HTTP_ACCEPT_LANGUAGE" in <b>/www/wwwroot/01xj.net/wp-content/plugins/wp-ue/main.php</b> on line <b>13</b><br />
{"id":558,"date":"2015-05-05T07:31:16","date_gmt":"2015-05-04T23:31:16","guid":{"rendered":"http:\/\/www.01xj.net\/?p=558"},"modified":"2015-05-05T07:31:16","modified_gmt":"2015-05-04T23:31:16","slug":"phpcms-v9-%e6%95%b0%e6%8d%ae%e5%ba%93%e6%93%8d%e4%bd%9c%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"https:\/\/www.01xj.net\/?p=558","title":{"rendered":"phpcms v9 \u6570\u636e\u5e93\u64cd\u4f5c\u51fd\u6570"},"content":{"rendered":"<p><span>\u8868\u660e\u9ed8\u8ba4\u5f53\u524dload_model(&#8216;xxxx&#8217;)\u6a21\u5757\u6240\u5728\u8868\u540dxxxx<\/span><\/p>\n<p><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0\u00a0<\/span><span>\u82e5\u8981\u6307\u5b9a\u8868\u540d\u00a0<\/span><span>\u00a0\u5219\uff1a\u64cd\u4f5c\u5728mysql.class.php\u4e2d$this-&gt;db-&gt;se<\/span><span>lect(&#8230;)<\/span><\/p>\n<p><span>1\u3001\u67e5\u8be2<\/span><br \/>\n<span>\u00a0<\/span><span>\u00a0$this-&gt;select($where = &#8221;, $data = &#8216;*&#8217;, $limit = &#8221;, $order = &#8221;, $group = &#8221;, $key=&#8221;)\u00a0<\/span><span>\u00a0<\/span><span>\u00a0\u8fd4\u56de\u7ed3\u679c\u96c6\u6570\u7ec4<\/span><br \/>\n<span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0\u6761\u4ef6 \uff0c\u5b57\u6bb5(id,name,email&#8230;.)\uff0c\u8303\u56f4\u00a0<\/span><span>\u00a0<\/span><span>\u00a0\u6392<\/span><span>\u5e8f\u65b9\u5f0f\uff0c\u5206\u7ec4\u65b9\u5f0f\uff0c\u6309\u5efa\u540d\u6392\u5e8f<\/span><\/p>\n<p><span>2\u3001\u67e5\u8be2\u591a\u6761\u6570\u636e\u5e76\u5206\u9875<\/span><\/p>\n<p><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0\u00a0<\/span><span>listinfo($where = &#8221;, $order = &#8221;, $page = 1, $pagesize = 20, $key=&#8221;, $setpages = 10,$urlrule = &#8221;,$array = array())<\/span><\/p>\n<p><span>3\u3001\u83b7\u53d6\u5355\u6761\u8bb0\u5f55\u67e5\u8be2<\/span><\/p>\n<p><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0get_one($where = &#8221;, $data = &#8216;*&#8217;, $order = &#8221;, $group = &#8221;)<\/span><\/p>\n<p><span>4\u3001\u76f4\u63a5\u6267\u884csql\u67e5\u8be2<\/span><\/p>\n<p><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0\u00a0<\/span><span>query($sql)\uff1b<\/span><\/p>\n<p><span>5\u3001\u83b7\u53d6\u6700\u540e\u4e00\u6b21\u6dfb\u52a0\u8bb0\u5f55\u7684\u4e3b\u952e\u53f7\u00a0<\/span><span>\u00a0insert_id()<\/span><\/p>\n<p><span>6\u3001\u6267\u884c\u66f4\u65b0\u8bb0\u5f55\u64cd\u4f5c\u00a0<\/span><span>\u00a0<\/span><span>\u00a0update($data, $where = &#8221;)\u00a0<\/span><span>\u00a0$data \u5efa\u8bae\u4e3a\u6570\u7ec4\uff0c$where \u53ef\u4e3a\u6570\u7ec4\u53ef\u4e3a\u5b57\u7b26\u4e32<\/span><\/p>\n<p><span>7\u3001\u6267\u884c\u5220\u9664\u8bb0\u5f55\u64cd\u4f5c\u00a0<\/span><span>\u00a0<\/span><span>\u00a0delete($where)<\/span><\/p>\n<p><span>8\u3001\u8ba1\u7b97\u8bb0\u5f55\u6570\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0count($where = &#8221;)<\/span><\/p>\n<p><span>9\u3001\u83b7\u53d6\u6700\u540e\u6570\u636e\u5e93\u64cd\u4f5c\u5f71\u54cd\u5230\u7684\u6761\u6570\u00a0<\/span><span>\u00a0affected_rows()<\/span><\/p>\n<p><span>10\u3001\u83b7\u53d6\u6570\u636e\u8868\u4e3b\u952e\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0get_primary()<\/span><\/p>\n<p><span>11\u3001\u83b7\u53d6\u8868\u5b57\u6bb5\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0<\/span><span>\u00a0get_fields($table_name = &#8221;)<\/span><\/p>\n<p><span>12\u3001\u68c0\u67e5\u8868\u662f\u5426\u5b58\u5728\u00a0<\/span><span>\u00a0<\/span><span>\u00a0table_exists($table)<\/span><\/p>\n<p><span>13\u3001 \u68c0\u67e5\u5b57\u6bb5\u662f\u5426\u5b58\u5728\u00a0<\/span><span>\u00a0field_exists($field)<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8868\u660e\u9ed8\u8ba4\u5f53\u524dload_model(&#8216;xxxx&#038;#8217&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-558","post","type-post","status-publish","format-standard","hentry","category-phpjsshell"],"_links":{"self":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=558"}],"version-history":[{"count":1,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/558\/revisions"}],"predecessor-version":[{"id":559,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/558\/revisions\/559"}],"wp:attachment":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}