Is it possible to query the database and get the sum() of column a and still get information as it loops from column b,c,d etc?
Perhaps I am overlooking something. Here is my query.
PHP Code:
mysql_query('SELECT SUM(j.time_hours*e.employee_wage) AS "total" FROM `employee_timecard` t
INNER JOIN `employee` e ON e.employee_id=t.time_employee_id
INNER JOIN `timecard_jobcode` j ON j.time_id=t.time_id
WHERE t.time_job_id = ' . $_GET['job'] . ' AND j.time_code = ' . $classid . ' AND t.time_day >= ' . $_GET['start'] . ' AND t.time_day <= ' . $_GET['end'] .