i want to use jquery datepicker to pick a date then when select it to do select query from the database according to the selected date i've seek about that and found this question jQuery datepicker with php and mysql they say i should use ajax to do it but i can't understand the implementation they do! can anybody help please i try to do something like that
<script>
$(function() {
$( "#datepicker" ).datepicker({minDate: 0, showAnim: "bounce",
onSelect: function(dateText, inst) {<?php mysql_select_db($database_conn, $conn);
$query_time = "SELECT reservation.R_time FROM reservation WHERE reservation.R_date='"?>dateText<?php "'" ;
$time = mysql_query($query_time, $conn) or die(mysql_error());</script>
$.ajaxand$.get.