need help in inserting a php inside this script, heres the code
<script type="application/javascript">
var eventData = [
{
date:"2015-03-01",
badge:false,
title:"Example 1"
},
];
$(document).ready(function () {
$("#my-calendar").zabuto_calendar({
data: eventData
});
});
</script>
example i just want to declare a varible like $date=$row['date'];
date:"<?php echo $date ?>",
but its not working need help, thanks for help in advance :)