I have a php file which queries and runs function ('somefunction') on the element fetched from each row.

The issue is now I have a new column which specifies a condition on sql and based on that condition we have to decide whether to run this function or not.

condition has a php code and it has to be executed, sample is given below

```
<?php   

     $sqlString = 'select * from s_tables';
        $result = mysql_query($sqlString);
        while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
             $functionName = $row["functionName"];//pre-defined functions inside my php file
             $conditionToCheck = $row["conditionToCheck"];//newly added one, will return a piece of php code
             $stylesToAffect = $row["elementToAffect"];//say html elements H1,H2,P
             if ($conditionToCheck){
                //need to evaluate code which i got from query
                $checkStatus = eval($conditionToCheck);//this is not working
             }

             if ($checkStatus){
                  //this function runs perfectly 
                  if (method_exists($this, $functionName)){
                       $this->$functionName($stylesToAffect);
                  }
             }
        }

        //just for a sample 'conditionToCheck' look like
        $var1 = 2;
        $var2 = 3;
        if ($var1 > $var2){
            $checkStatus = true;
        }else{
            $checkStatus = false;
        }

?>

```

Can any one look into this, Thanks in prior