Using this StackOverflow Question/Answer, I have a Tooltip Javascript that is supposed to use a PHP echo of a session variable. Instead of actually writing out the value, it is writing out the variable name, myvar?
I tried to \ the echo statement where ' occur with no luck.
Here is the code in question and screenshot of what I'm getting on mouseover:
var ddimgtooltip={
    tiparray:function(){
        var tooltips=[]
        var myvar='<?php echo($row_WADAHTG_ScheduleRequest[\'EmNo\']); ?>';
        tooltips[0]=["image/emp/$myvar.bmp", "$myvar", {background:"#DDECFF", width:"200px"}]
        return tooltips //do not remove/change this line
    }(),

 
     
    