TipMan Report for $year
+
EOP;
@@ -38,7 +40,7 @@ SELECT MONTH(tips.date) AS month,
IF(DAYOFMONTH(tips.date) < 16, 1, 2) AS period,
SUM(tips.amount) AS tip_total
FROM tips
-WHERE user = $user
+WHERE user = $userID
AND YEAR(tips.date) = $year
GROUP BY month, period;
EOQ
@@ -65,12 +67,13 @@ EOQ
$tip_totals[$monthIndex][2] = 0;
/* Print a row in the report table */
- print('