Do I use the php in jquery function the right way? Because for editing I use NuSphere PhpED and it says “unexpected ‘,'” but if I run the page its working, I don’t get any error.
<?php
$luna = $month;
$an = $year;
?>
<script>
$(function() {
get_data(<?php echo "$luna"; ?>, <?php echo "$an"; ?>);
});
</script>
Your quotes are just in the wrong place.