so I have this jQuery script which I'm using for a jQuery countdown.
<script>
$(function () {
var austDay = new Date();
austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26);
$('#defaultCountdown').countdown({until: austDay});
$('#year').text(austDay.getFullYear());
});
</script>
But the date here is hardcoded. What I want is, that I want to get the end time from a mysql database and then use it in jQuery. How would I do that ?
Here's my database structure
Product ID ProductName End Date
(auto_increment) (VARCHAR) DATE