Hello before all, this is my first post here, ive got this function:

function load_SpecialDays() {
add_SpecialDay("01-Jun-2008", 'booked')
add_SpecialDay("4/Jun/2008", 'booked')
add_SpecialDay("5-Jun-2008", 'booked')

And this php code:

include 'config.php';
include 'opendb.php';
$query = "select arrival from confirmed where room_id = 1";

$result = mysql_query($query);

while ($row = mysql_fetch_assoc($result)) {
list( $anio, $mes, $dia ) = explode( "-", $row['arrival'] );
echo "add_SpecialDay($dia-$mes-$anio, 'booked')<br>\n";

It prints on screen this:

add_SpecialDay(18-06-2008, 'booked')
add_SpecialDay(03-07-2008, 'booked')
add_SpecialDay(12-07-2008, 'booked')

Could i assign this result to the function, i mean could i assign value for this result to include on load_SpecialDays()?

Thanks in advance.