In my PHP i have the following PDO query:
$findEventStartdates = $pdo->prepare('SELECT startdate FROM calendar WHERE username=?');
//execute query with variables
$findEventStartdates->execute([$username]);
($eventStartdates = $findEventStartdates->fetchAll(PDO::FETCH_COLUMN));
If i print that query i get the following results
Array ( [0] => 14 april 2017 [1] => 25 april 2017 [2] => 1 april 2017).
My question is, how can i use this array to then highlight those dates in the datepicker. I've looked for ages on how to turn that array into variables in jquery and then highlight those days in the datepicker but can't seem to find it anywhere.
Thanks for any help.