I am trying to create an associate array like this
while($row = $result1->fetch_assoc()) {
$user = $row['first_name'] ."_" . $row['last_name'];
$userholder[$user] = $row['choice'];
$event = $row['event_name'] . "_" . $row['event_location'] . "_" . $row['even_date'];
$consolidateEvents[$event] = $userholder;
}
but my $consolidateEvents array is numeric. I cannot see what I am doing wrong. Why am I not getting $event as the key for my array?