I have looked around in stack overflow but nothing really helped me further.. So I hoped someone could answer my question/help directly. I can't seem add a sum and this with a limit. I want to get the average result for every week (sum with a limit basically).
<form action="inft.php" method="POST">
<button type="submit" name="asubmit">Average</button>
</form>
<?php
include_once 'dbh.inc.php';
$dpl = $db->query("SELECT SUM(`gewicht`) as `total` FROM bgewicht");
$row = $dpl->fetch_assoc();
echo $row['total'];
?>
My apologies if this question was asked somewhere before, my apologies for my ignorance too. I just started programming.
With kind regards,
D.