Here's how you can fill a multi-dimensional array: $days = array(); //Declare $days to be an array while ($row = mysql_fetch_assoc($result)) //set variable $row to be an associative array containing a row of results from your mysql query array_push($days, $row); //Inserts a new record into $days and stores $row in it. This creates a multi-dimensional array Or, if you want it associative: $days = array(); while ($row = mysql_fetch_assoc($result)) $days['whatever here'] = $row; Hope that helps! -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php