I am passing vlues to javasript function from PHP in following manner:
<select onChange="display_databody(<?=$manufacturers_id?>,<?=$modelID?>,this.value,<?=**$month_year**?>);">
Here $month_year is a string obtained from MySQL.
When javascript function is getting this value it is getting something like -8 or -13.
I have tried json_encode() but it is also not working.