CalcBuilder Forum

unexpected T_STRING error and no result in my 1st attempt

User hariskar 2011-11-20 15:43:55

I am trying to make my 1st form but I get errors.
The formula is
HbA1c X 33.3 – 86 = MBG

I want for a given HbA1c to calculate MBG.

So I made 1 variable hba1c and the formula $result=$hba1c*33.3–86;

but I get tis error:
Parse error: syntax error, unexpected T_STRING in /home/netlabgr/public_html/components/com_calcbuilder/models/calcbuilder.php(202) : eval()'d code on line 1

and no result. Any help please?
Thank you!

Edited by hariskar - 20.11.2011 15:47


Edit: I found the solution: The problem was the wrong big minus sign that was pasted in the formula.

Edited by hariskar - 20.11.2011 16:01

...
CalcBuilder

Create dynamic calculators

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!