There are actually two parts to your question
How to Highlight Specific Dates ... in jQuery UI Datepicker
The synapsis for this is you are going to need to create "events" on the calendar and then apply a style to the events. The following link looks to be a decent article that covers this item in detail for you
How to Highlight Specific Dates in jQuery UI Datepicker - CodexWorld[
^]
Dates FIND from database mysql
You will need to execute a
SELECT
statement to get a list of dates to populate the jQuery Calendar events. I cannot give you specifics on this as you have provided nothing to work with.
If you are loading this at page load, you could use whatever backend language you are using (PHP, .Net, etc.) to inject the dates into the javascript.
If you are using AJAX to grab the dates, you would use the
success function to itterate over the date list and add the events that way.