使用文本区域

时间:2017-04-28 18:34:15

标签: javascript php sql

我是一个爱好Coder,(基本上我只是为了好玩而这样做)

我最近一直在构建一个数据库,用于我的角色扮演社区。 数据库将存储所有警察数据,并将所有逮捕记录在一个地方。

我目前正在尝试构建提交逮捕信息的页面,但我正在努力奋斗。

我希望制作一个系统,当您将罪行输入文本框时,它将

  1. 自动填充,添加逗号和空格,然后允许您输入其他犯罪。
  2. 2.将其添加到同一页面上的表格中。所有犯罪列在彼此之下。

    1. 显示此人在收费旁边的另一栏中获得的每项费用的时间。
    2. 我已经尝试了一段时间并且到目前为止都没有成功。我设法完成了自动完成部分,但这意味着我必须爆炸字符串,这意味着我无法循环遍历它们或者在我的数据库中搜索它们。

          <div class="form">
        <form>
          <h2>Enter All Crimes</h2> </br>
          <textarea name="message" id="skills"></textarea>
        </form>
        <?php
        ?>
      </div>
      </div>
      <table id='example' class='display' cellspacing='0' width='100%'>
      <thead>
        <tr>
            <th>Charge</th>
            <th>Time</th>
        </tr>
      </thead>
      <tbody>
      <td>
        <?php
        // I want this to list off all of the charges from the textarea, with a submit button or without, im not too fussed.
        //also if anyone can help me make an autocompleting Textearea which reads from a database i would be very grateful.
        ?>
      </td>
      <td>
        <?php
        // I want this to echo The Time related to each of the Charges e.e. Speeding = 10
        ?>
      </td>
      </tbody>
      </table>
      </body>
      </html>
      

      这是到目前为止我的一个页面的链接,所以你可以看到我的目的: http://ericmchogan.co.uk/project_roleplay/leo_panel/textbox.php

0 个答案:

没有答案