I have an array that I created doing a this:
while($row_attendee=mysql_fetch_array($select_attendee)){ $conflict[$s]=array("id"=>"$row_attendee[participant]", "date"=>"$row_date[date]");
$s++;
}
when I do a print_r($conflict);
I get this:
Array ( [0] => Array ( [id] => QZ2KLM [date] => 2001-01-01 ) [1] => Array ( [id] => QZ2KLM [date] => 2001-01-01 ) [2] => Array ( [id] => VZS1XV [date] => 2001-01-01 ) [3] => Array ( [id] => PZ6PZ5 [date] => 2001-01-01 ) [4] => Array ( [id] => ZZFGTM [date] => 2001-01-01 ) [5] => Array ( [id] => BZ54CD [date] => 2001-01-01 ) [6] => Array ( [id] => BZZC4S [date] => 2001-01-01 ) [7] => Array ( [id] => GZ53S1 [date] => 2001-01-01 ) [8] => Array ( [id] => MZMHK7 [date] => 2001-01-01 ) [9] => Array ( [id] => QZ2KLM [date] => 2001-01-01 )
What I need some help in is echoing out just the id and the date. I tried accessing them in a loop like this.
while($print_conflict=each($conflict)){
echo"$print_conflict[id] and $print_conflict[date]";
}
This doesn't work. it gives me some error like"not a defined index" or something like that. So then I tried accessing them through the number scheme of "$print_conflict[0] and $print_conflict[1]" and I only get "1 and array".
Does anyone have any input?
Thanks,
mojodojo