Hello: I need to pass a parameter into a php function but it passes as a string and i dont know how to fix it, the code is:
function example(id){
var test=id;
var result ="<?php echo php_func('" + test + "',$database_user) ?>";
document.write(result)
}