刷新数据而不加载页面php sql

时间:2018-09-22 16:58:17

标签: javascript php html mysql sql

我有一个HTML表和PHP,供它处理和显示在HTML表中。每次页面加载时都会刷新,但我想每1秒钟自动刷新一次。继承人PHP:-

    $seql = "select price, sum(total), sum(aleft) from trade where status = 'active' and bm = '$bm' and m = '$market' and type = 'sell' group by price";
     $query100 = mysqli_query($conn, $seql);

和html表

  <div style='float: left;'>
<br><br>
<p style="padding-left:16px; font-size: 20px;">Amount(<?php echo $market; ?>) | Price(<?php echo $bm; ?>) &nbsp | Total(<?php echo $bm; ?>)</p>
<div class="panel-hello scrollbar" id="style-11">
    <div class="data-table">
        <table class="table table-hello table-bordered table-hover force-overflow" id="btcaddresses">
            <tbody style="border: 1px solid green; height: 300px; overflow-y: scroll;">
                <?php
    while ($row = mysqli_fetch_array($query100))
    {
        echo '<tr style="cursor: pointer; font-size: 15px;">
                <td>'.number_format($row['sum(aleft)'], 8).'</td>
                <td>'.number_format($row['price'], 8).'</td>
                <td>'.number_format($row['sum(total)'], 8).'</td>
            </tr>';
    }?>
            </tbody>
        </table>
    </div>
</div>
</div>

感谢您的帮助。

0 个答案:

没有答案