Hi I done customised my shopping cart. I have stored the Shipping & Handling formula (eg (($Y$W$A/0.75)+$C)*(1+$D) ) in MYSQL database. When I retrieve from database to coding, the formula does not calculated.
Any kind person pls help me.
You're storing this as a string in the database? PHP won't evaluate a string as PHP code unless you tell it to. Read up on [man]eval[/man].
Yes, I use eval(). How do u prevent parse error when using eval()
By writing syntactically correct PHP; the same way you prevent parse errors in the rest of the program.