I'm using Keith Wood's Calendars Datepicker, and I want to show a price inside a datepicker cell according to the following php query, showing a different price in each cell. How do I do this ?
$('#popupDatepicker').calendarsPicker({
onDate: function(date) {
return {content: date.day() + '<br><sub>' +
<?php
$PropertyNumber=53;
$Date= 'date.toString()';
$res2 = $dbh->prepare("select * from property_price where PropertyNumber=:PropertyNumber and Date=:Date ");
$res2->execute(array(':PropertyNumber'=>$PropertyNumber,':Date'=>$Date));
$row = $res2->fetch(PDO::FETCH_ASSOC);
if ($res2 ) {
echo $row['Price'] ;
}
?>
+ '</sub>',
};
}
});