我想检索表中的数据,然后将其制成图表
请帮助如何从整体上检索总ID中的数据
</table>
<label for="">Table Hasil</label>
<table class="table" border="1" id="hasil">
<thead class="thead-dark">
<tr>
<th>No</th>
<th>Alternatif</th>
<th>C1</th>
<th>C2</th>
<th>C3</th>
<th>C4</th>
<th>Total</th>
</tr>
</thead>
<?php $i=1; foreach ($saw as $s) { ?>
<tr>
<td>
<?= $i++ ?>
</td>
<td>
<?= $s->alternatif ?>
</td>
<td>
<?= $a = round($s->c1/$nilaiMax->c1 *0.25,2) ?>
</td>
<td>
<?= $b = round($s->c2/$nilaiMax->c2 *0.25,2 ) ?>
</td>
<td>
<?= $c = round($s->c3/$nilaiMax->c3*0.3,2) ?>
</td>
<td>
<?= $d = round($s->c4/$nilaiMax->c4*0.2,2) ?>
</td>
<td id="total">
<?= $total = $a+$b+$c+$d ?>
</td>
</tr>
<?php } ?>
</table>
感谢您的帮助
UYOU