views:

156

answers:

2
+2  A: 

You want this out side your loop:

$days = array();

And this inside your while loop:

$days[$Myday] = array('/index.php?day=$Myday&year=$MYyear','linked-day');

Your loop isn't actually adding to your array its just assigning a bunch of variables that get rewritten anyways.

Tim
Funny, I over looked the simple option. I thought I needed to use foreach to do this. Thank you so much.
Michael Howey
A: 
Michael Howey
Isn't this exactly what Tim answered with?
random