Yeah Yeah, I know this is so easy, then will someone pleeeeze tell me why this is not working...
Here's the deal:
$query3 = mysql_query("SELECT * FROM db.table WHERE agentsname = '$reportagent' and date like '$yesterday%'");
$numrows009=mysql_num_rows($query3);
$countitall[$f] = $numrows009;
echo"<tr><td>$f</td><td>$reportagent</td><td>$numrows009</td></tr>";
}
foreach ($countitall as $key => $value) {
$countitall[$key] = "$value";
}
$countitall = implode ('+', $countitall);
echo $countitall;
At the moment there are 2 agents. first with 1 and the second with 0. The above prints 0+1, so I tried echo" . ROUND($countitall) .""; which prints 0.
Where am I going wrong???
Please help, I have no dignity left 🙁
Mark