PHP Classes

Need helph please

Recommend this page to a friend!

      Fuzzy logic  >  All threads  >  Need helph please  >  (Un) Subscribe thread alerts  
Subject:Need helph please
Summary:help
Messages:2
Author:Teguh
Date:2012-10-17 03:48:16
Update:2012-10-17 11:00:10
 

  1. Need helph please   Reply   Report abuse  
Picture of Teguh Teguh - 2012-10-17 03:48:17
I want to set fuzzy rule at my rule that i store in the database
but that database result cannot be used in addRule() function

  2. Re: Need helph please   Reply   Report abuse  
Picture of Wojtek Jarzecki Wojtek Jarzecki - 2012-10-17 11:00:10 - In reply to message 1 from Teguh
AddRule is a function of the only once parameters.This parameters is a variable of type string. This string is parsed by the interpreter. Because it is a string that I do not understand why it can not be retrieved from the database?.

example:
$x->clearRules();
$x->addRule('IF project_funding.adequate OR project_staffing.small THEN risk.low');

example for database result :
$x->clearRules();
$database_result= //.... read string from database
$x->addRule($database_result);

// where $database_result= 'IF project_funding.adequate OR project_staffing.small THEN risk.low';

regards
AK