0👍
save your data to array like $month
, example $countApplied = $row['count']
change to $countApplied[] = $row['count']
;
while ($row = mysqli_fetch_array($applied_query)){
$month[] = $row["month"];
$countApplied[] = $row['count'];
}
Source:stackexchange.com