This is my code:
public function test(){
$type = 'test';
$a = '1';
$b = '1';
$formula = $this->Dashboard_Model->formula($type);
$answer = $formula->FORMULA;
//echo $answer;
}
All it does is get the formula that I stored into my database. I can properly get the formula I want. And for this test function the formula is $a+$b
Now I want that formula to become a PHP code and output the answer. How can I do it?
I want it so that whatever formula I want, I can use it, and update it whenever I wanted to.
Thanks.