I can't find the way to print this array. This is my script:
foreach ($task_types as $key => $value) {
echo $key;
$taskqu = mysql_query("SELECT COUNT(*), task_type FROM dotp_tasks WHERE task_type = '$key'");
while ($row = mysql_fetch_array($taskqu)) {
$taskqu[$row['task_type']] = $row[0];
}
}
echo "<pre>";
print_r($taskqu);
echo "</pre>";
And when I try to print it, here's the error I get:
Warning: Cannot use a scalar value as an array in
How can I solve this?