getting a error at $item_id_g'. its bc of the quotes
<?php
echo"
<button type='submit' onmousedown='func('$item_id_g');'>test</button>
";
?>
i also tried this but didnt work
<?php
echo"
<button type='submit' onmousedown="func('$item_id_g');">test</button>
";
?>