Hi! I am having some problems with creating a multi-dimensional array.
The $fetch contains 2 rows.. but the loop seems to overwrite the values from the previous loop.. I want to store all rows into the array from the fetch =)
In the first loop $rows[2] is 24, the second 25. Only $array_ceremony[25] gets filled..
while($rows = mysql_fetch_row($fetch))
{
$loop_day = $rows[2];
$array_ceremony = array (
$loop_day => array(0=> $rows[0], 1=> $rows[1]));
}
print_r($array_ceremony); //prints Array ( [25] => Array ( [0] => 2 [1] => Juldagen ) )