Populate javascript variables with php variables : I must use php variables (from DB) to populate  javascript variables like the one below:

       var oMain = new CMain({
                                                mon:  100,        
                                                min_: 10,      
                                                max_: 25,     
                                                time_bet: 0,       
                                                time_winner: 500,  
                                                win_occurrence: 65, 
                                                cash:100000,  
                                                fullscreen:true, 
                                                check_orientation:true,  
                                                show_credits:true,  
                                                num_before_ads:1 
                             });

it tried to echo my php variables directly in javascript (ex : `mon: <?php echo $mon; ?>,`) but this does not work.

What do you recommend?


