vậy trong while in ra sao bạn?
code dưới đây in ra các dòng từ ngày..đến ngày.. vấy muốn tính tổng theo ngày thì mình sửa lại như thế nào bạn?
<?
require("connect.php");
$totalRows = 0;
$stSQL ="select * from phieuthu where Ngaythu between '$tungay' and '$denngay' order by Ngaythu DESC limit 0,10 ";
$result = mysql_query($stSQL, $link);
$totalRows=mysql_num_rows($result);
$temp=0;
?>
<?
while ($row = mysql_fetch_array ($result))
{
?>
<?=$row['Sotien']?>
<?
}
?>