Can I please have some help in using a PHP variable in some Javascript code.
I am wanting to pass a value to a Javascript function that is stored in a PHP variable.
Here is my code:
$UpdateText="updateReTotal(Tills,'pos_cash','{$till->till_id}');updateVariance('{$till->till_id}')";
echo '<script type="text/javascript">'
, 'testFunctionForUpdateTotal(.$UpdateText.);'
, '</script>';
Thanks in advance.