I want to display the total of all rows which are displayed for each employee
the below code is to display hours spent by each employee in some workshop
php $sqluser=“SELECT eName FROM emp ORDER BY eName”;
$sqluser;
$res=mysql_query($sqluser);
while($rw=mysql_fetch_array($res))
{
$name=$rw[‘eName’];
?>
}
}
?>
In this case I am getting hours for each employee seperated, but I want the total hrs by for employee.
Please help