I have a database table that stores various types of statements and values โโthat express expressions such as
if(mydBVal1 mydBExpression mydBval2) { // do something....! }
Here is my code that shows both an example of what I want to say and the help I need for example:
$data['myValue'] = 100; $data['operator'] = "<"; $data['comparison_value'] = 150 if( $data['myValue'] . $data['operator'] . $data['comparison_value'] ) { ///do something...... }
I want the condition to be read as if(100 < 150){} , but the if condition expression is not working properly!
Does anyone know how I can make it work?
saint
source share