Okay, basically... i am trying to store the dates and month name from my database in this format. I am aiming store the month and then count the entries in that month and then store the count. This is my loop, but I have trouble formatting the array properly.
while ( $row = mysql_fetch_assoc($res) ) {
if ($row['Date'] != $prev_date) {
$values=array(
$row['Date'] => $count,
);
$prev_date = $row['Date'];
}
$count++;
}
print_f($values);
You can see that I will always overwrite my previous array and I am not really adding entries into the array. I couldn't figure out how to do it. I'm basically trying to see the number of entries per month.
OLD Update: Currently learning the MYSQL thing that one commenter mentioned. I'll update when I get it.