i want to get sub destination id which is coming from jquery i want it in this mysql query
<a href="#small_add" data-id="<?php echo $id;?>" type="button" data-toggle="modal" class="open-AddBookDialog">Details</a></div>
<script>
$(document).on("click", ".open-AddBookDialog", function () {
var myBookId = $(this).data('id');
$(".modal-body #bookId").val( myBookId );
$('#small_add').modal('show');
});
</script>
$sub_desti_id=???
$small_hotel="SELECT * FROM small_add WHERE sub_dest='$sub_desti_id' ";
$small_hotel1=mysql_query($small_hotel);