I am trying to pass data returned from a query into the function below. I have put the returned data into the variable $startvalue. I need to pass that variable into the function at the part "initialValue:" but no matter how I try the value is not passed. I have tried putting the variable directly in between the ticks. Add " to either end and fiddled with every conceivable combination I have used in the past but still nothing. I even tried passing the variable to another like this: var initval=$startvalue; and tried to pass that into the function but still nothing. I know the function works because if I enter a numeral manually it does what its supposed to do. Im stumped.
You need to begin the PHP parser.
initialValue: '<?php echo $startvalue; ?>',
initialValue: '<?= $startvalue ?>',
initialValue: <?= json_encode($startvalue) ?>,