NWEval
Posted: Sat Sep 06, 2014 4:23 pm
So I am working on a module and I need to use NWEval. Now, I have used NWEval before in my voting module but for some reason I keep getting this error:
I have a table column like:
and my usage is like:
Which is a copy/paste from the crimes module because that seemed to work perfectly
And in my table I have tried using things like:
***EDIT***
Also my $success is returning 0
Code: Select all
Error: syntax error, unexpected T_STRING
HINT: Maybe you didn't closed / escaped a string correctly or missing a ; sign at the end of a line.
Error in "not/important/to/know/root/directory/nwe/libs/common.php(1143) : eval()'d code"
Line 1
Code: Select all
`crimeSuccess` text NOT NULL
Code: Select all
$success = round(NWEval("return {$crimes->fields[1]};") * 100.0, 0);
?>
And in my table I have tried using things like:
- 50/8;
- 50/8
- 50;
***EDIT***
Also my $success is returning 0