I have a problem with the implementation of 'jQuery datepicker' in my web project.
I Have a 'mysql' query result and I want integrate into the function 'disabledDays' for the datepicker calendar.
Your help will be very important to me project.
Following the code I'm working with:
<?php
mysql_select_db($database_cnxFantastic, $cnxFantastic);
$result=mysql_query("select data from xxxxxx WHERE xxxxxx='n'");
while($row = mysql_fetch_array($result)) {
$fecha1=$row["data"];
$fecha2=date("m-d-Y",strtotime($fecha1));
printf(%s, $fecha2);
}
mysql_free_result($result);
?>
<script type="text/javascript">
$(function() {
var disabledDays = ['????????????'];
function disableAllTheseDays(date) {
var m = date.getMonth(), d = date.getDate(), y = date.getFullYear();
for (i = 0; i < disabledDays.length; i++) {
if($.inArray((m+1) + '-' + d + '-' + y,disabledDays) != -1) {
return [false];
}
}
return [true];
}
grateful: