How do I Save this Parameter in My Mysql database using PHP

0

I have this code that read a QRcod by Web Can and I would like to save the reading of it on a Mysql Bank. However, I do not know how I can save this variable directly.

Could someone give me a hand?

The variable you would like to save is the {{scan.content}} that when the camera reads the QRcod it prints this value on the screen.

       Instascan - Demo                               

<div id="app">
  <div class="sidebar">
    <section class="cameras">
      <h2>Cameras</h2>
      <ul>
        <li v-if="cameras.length === 0" class="empty">Nenhuma Camera Encontrada</li>
        <li v-for="camera in cameras">
          <span v-if="camera.id == activeCameraId" :title="formatName(camera.name)" class="active">{{ formatName(camera.name) }}</span>
          <span v-if="camera.id != activeCameraId" :title="formatName(camera.name)">
            <a @click.stop="selectCamera(camera)">{{ formatName(camera.name) }}</a>
          </span>
        </li>
      </ul>
    </section>
    <section class="scans">
      <h2>Entradas</h2>

      <ul v-if="scans.length === 0">
        <li class="empty">Nenhuma Entrada</li>
      </ul>
      <transition-group name="scans" tag="ul">
        <li v-for="scan in scans" :key="scan.date" :title="scan.content"> {{ scan.content }}</li>
      </transition-group>
    </section>
  </div>
  <div class="preview-container">
    <video id="preview"></video>
  </div>
</div>
<script type="text/javascript" src="app.js"></script>

    
asked by anonymous 27.02.2018 / 13:35

0 answers