{"id":199192,"date":"2025-05-03T11:15:49","date_gmt":"2025-05-03T03:15:49","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199192\/"},"modified":"2025-05-03T11:15:49","modified_gmt":"2025-05-03T03:15:49","slug":"ecshop%e6%b7%bb%e5%8a%a0%e5%95%86%e5%93%81%e9%80%89%e6%8b%a9%e5%93%81%e7%89%8c%e6%97%b6%e5%a6%82%e4%bd%95%e6%8c%89%e6%8b%bc%e9%9f%b3%e6%8e%92%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199192\/","title":{"rendered":"ecshop\u6dfb\u52a0\u5546\u54c1\u9009\u62e9\u54c1\u724c\u65f6\u5982\u4f55\u6309\u62fc\u97f3\u6392\u5e8f"},"content":{"rendered":"<p style=\"border-top-style: none;border-right-style: none;border-bottom-style: none;border-left-style: none;border-width: initial;border-color: initial;list-style-type: none;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\">ECSHOP\u540e\u53f0\u6dfb\u52a0\u65b0\u5546\u54c1\u65f6\uff0c\u6709\u4e00\u4e2a\u9009\u62e9\u54c1\u724c\u7684\u4e0b\u62c9\u6846\uff0c\u5982\u679c\u54c1\u724c\u592a\u591a\uff0c\u5728\u4e0b\u62c9\u6846\u91cc\u67e5\u627e\u8d77\u6765\u5f88\u4e0d\u65b9\u4fbf\u3002<\/p>\n<p> \u6211\u60f3\u7ed9\u201c\u4e0b\u62c9\u6846\u91cc\u7684\u54c1\u724c\u5217\u8868\u201d\u6309\u54c1\u724c\u540d\u7684\u62fc\u97f3\u6392\u5e8f\uff0c<br \/> \u6bd4\u5982\u6709\u201c\u4e2d\u56fd\u6c34\u5229\u51fa\u7248\u793e\u201d \u201c\u4e2d\u56fd\u4eba\u6c11\u51fa\u7248\u793e\u201d \u8fd9\u4e24\u4e2a\u54c1\u724c\u540d\u7684\u62fc\u97f3\u9996\u5b57\u6bcd\u90fd\u662f \u201cZ\u201d\uff0c\u8fd9\u6837\u7684\u54c1\u724c\u653e\u5728\u4e00\u8d77\uff0c\u8fd9\u6837\u65b9\u4fbf\u67e5\u627e\uff0c<\/p>\n<p> \u8bf7\u95ee\u4ee5\u4e0a\u9700\u6c42\u8981\u5982\u4f55\u4fee\u6539ECSHOP\u6a21\u677f\u6765\u5b9e\u73b0\u5462\uff1f\uff1f<\/p>\n<p> \u6559\u7a0b\uff1a<\/p>\n<p> \u9996\u5148\uff0c\u8fd9\u4e2a\u95ee\u9898\uff0c\u53ea\u4fee\u6539ECSHOP\u6a21\u677f\u662f\u4e0d\u884c\u7684\uff0c\u5f97\u901a\u8fc7\u4fee\u6539\u7a0b\u5e8f\u6765\u5b9e\u73b0<\/p>\n<p> \u4e0b\u9762\u662f\u4fee\u6539\u65b9\u6cd5\uff1a<\/p>\n<p> 1\uff09<\/p>\n<p> \u5982\u679c\u4f60\u7684ECSHOP\u6570\u636e\u5e93\u4f7f\u7528\u7684\u662fGBK\u5b57\u7b26\u96c6\uff0c\u90a3\u4e48\u5f88\u7b80\u5355<\/p>\n<p> \u6253\u5f00 \/includes\/lib_common.php \u6587\u4ef6<\/p>\n<p> \u627e\u5230<br \/> &nbsp;<\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" style=\"border-right-width: 1px;border-right-style: solid;border-top-width: 1px;border-top-style: solid;background-image: initial;background-attachment: initial;border-left-width: 1px;border-left-style: solid;width: 673px;border-bottom-width: 1px;border-bottom-style: solid;font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\">\n<tbody>\n<tr>\n<td><font style=\"border-top-style: none;border-right-style: none;border-bottom-style: none;border-left-style: none;border-width: initial;border-color: initial;list-style-type: none;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px\">$sql = &#8216;SELECT brand_id, brand_name FROM &#8216; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;brand&#8217;) . &#8216; ORDER BY sort_order&#8217;;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\">\u4fee\u6539\u4e3a<\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" style=\"border-right-width: 1px;border-right-style: solid;border-top-width: 1px;border-top-style: solid;background-image: initial;background-attachment: initial;border-left-width: 1px;border-left-style: solid;width: 673px;border-bottom-width: 1px;border-bottom-style: solid;font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\">\n<tbody>\n<tr>\n<td><font style=\"border-top-style: none;border-right-style: none;border-bottom-style: none;border-left-style: none;border-width: initial;border-color: initial;list-style-type: none;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px\">$sql = &#8216;SELECT brand_id, brand_name FROM &#8216; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;brand&#8217;) . &#8216; ORDER BY brand_name&#8217;;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\">\u5c31\u53ef\u4ee5\u4e86<\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\">2\uff09<\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\">\u5982\u679c\u4f60\u7684ECSHOP\u6570\u636e\u5e93\u4f7f\u7528\u7684\u662fUTF8\u5b57\u7b26\u96c6\uff0c\u90a3\u4e48\u7a0d\u5fae\u9ebb\u70e6\u4e00\u70b9<\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\">\u6253\u5f00 \/includes\/lib_common.php \u6587\u4ef6<\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\">\u627e\u5230<\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" style=\"border-right-width: 1px;border-right-style: solid;border-top-width: 1px;border-top-style: solid;background-image: initial;background-attachment: initial;border-left-width: 1px;border-left-style: solid;width: 673px;border-bottom-width: 1px;border-bottom-style: solid;font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\">\n<tbody>\n<tr>\n<td><font style=\"border-top-style: none;border-right-style: none;border-bottom-style: none;border-left-style: none;border-width: initial;border-color: initial;list-style-type: none;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px\">$sql = &#8216;SELECT brand_id, brand_name FROM &#8216; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;brand&#8217;) . &#8216; ORDER BY sort_order&#8217;;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\"><br \/> <\/span><span style=\"font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\">\u4fee\u6539\u4e3a\u5982\u4e0b\u56fe\u6240\u793a\u4ee3\u7801<\/span><\/p>\n<\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" style=\"border-right-width: 1px;border-right-style: solid;border-top-width: 1px;border-top-style: solid;background-image: initial;background-attachment: initial;border-left-width: 1px;border-left-style: solid;width: 673px;border-bottom-width: 1px;border-bottom-style: solid;font-family: \u5b8b\u4f53, Verdana, Arial;font-size: 12px;line-height: 18px\">\n<tbody>\n<tr>\n<td><font style=\"border-top-style: none;border-right-style: none;border-bottom-style: none;border-left-style: none;border-width: initial;border-color: initial;list-style-type: none;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px\">$sql = &#8216;SELECT brand_id, brand_name FROM &#8216; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;brand&#8217;) . &#8216; ORDER BY convert(trim(brad name) using gbk)&#8217;;<\/p>\n<p> <\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> <br \/>\n<font><span style=\"font-size: 12px;line-height: 18px\"><br \/> <\/span><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ECSHOP\u540e\u53f0\u6dfb\u52a0\u65b0\u5546\u54c1\u65f6\uff0c\u6709&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-199192","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=199192"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199192\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}