Cron Job Error ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • codeboy
    Senior Member
    • May 2018
    • 112

    Cron Job Error ?

    My Code Line;
    PHP Code:
    $levelUp .= $result . " >= " . $calculation_value . " " . $query_type . " "; 
    
    PHP Code:
    $levelUpControl = eval("return " . $levelUp . ";"); 
    
    I'm get this error;
    Code:
    eval()'d code line 1 {"exception":"[object] (ParseError(code: 0): syntax error, unexpected '800' (T_LNUMBER), expecting ';'
    Please Help me
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hi,
    it is your code error but not EspoCRM...
    what does $levelUp variable contain?

    Comment

    • codeboy
      Senior Member
      • May 2018
      • 112

      #3
      Originally posted by tanya
      Hi,
      it is your code error but not EspoCRM...
      what does $levelUp variable contain?
      Code:
      $result = 5000;
      $calculation_value = 6000;
      $query_type = OR;
      
      $levelUp .= $result . " >= " . $calculation_value . " " . $query_type . " ";
      loop in foreach

      Comment

      Working...