MaterialiseCSS使用PHP自动完成MySQL数据到JSON

时间:2017-10-21 23:54:35

标签: php mysql json autocomplete materialize

如何从我的数据库中显示数据?

<div class="accordion-section"><a class="accordion-section-title" href="#accordion-1">About</a>
  <div class="accordion-section-content" id="accordion-1">
    <p>Test Text</p>
  </div>
  <!--end .accordion-section-content-->
</div>
<!--end .accordion-section-->
<div class="accordion-section"><a class="accordion-section-title" href="#accordion-2">Requirements</a>
  <div class="accordion-section-content" id="accordion-2">
    <p>Test Text 2</p>
  </div>
  <!--end .accordion-section-content-->
</div>
<!--end .accordion-section-->
<div class="accordion-section"><a class="accordion-section-title" href="#accordion-3">Rules</a>
  <div class="accordion-section-content" id="accordion-3">
    <p>Test Text 3</p>
  </div>
  <!--end .accordion-section-content-->
</div>
<!--end .accordion-section-->

来自MaterialiseCSS

我不知道如何将我的数据从MySQL更改为JSON,并且 specialy 就像这样。 你能帮帮我吗?

0 个答案:

没有答案