I have six tables with each has two columns named (meal, cost). I can SUM meal of one table. but I want to SUM the total meal of every table.
but like this.i have six tables. and I want to SUM the cost of every table at a time.
$qq="select SUM(cost5) as 'sumcost' from shawon";
$res=mysqli_query($conn,$qq); $data=mysqli_fetch_array($res);
echo "<div class='container'>". "sum of cost: ".$data['sumcost']."</div>";
is there any way to do it?