<script type="text/javascript">
var id=<?php print''.entry1->id.''?>;
var dataString = 'id='+ id;
$.ajax({
type: "POST",
url: "ajax_unfollow.php",
data: dataString,
cache: false,
});
</script>
there have a error in this line
var id=<?php print''.entry1->id.''?>;
how can i write php code in var id?
this javascript run in a foreach loop.