Security Assist Select a Rule
I have a details page where there is a field populated by a checkbox in the update/insert forms asking if a product is active. I want the word "yes" to show up if the value for the 'isactive' field is '1'. I used security Assist>Show Region and created a rule:
Allow if <?php echo $row_WADAproducts['isactive']; ?> = 1
When I try running it I get this error:
Notice: Undefined variable: row_WADAproducts in C:\xampp\htdocs\officefurniturezone.com\webassist\security_assist\helpergroupsrulesphp.php on line 8
The one shows up fine in the page so I know the variable is there within the Query and page so I am missing something:
The helper...php file line looks like this:
switch ($ruleName){
case "Show If Active":
$comparisons[0] = array(TRUE, "".$row_WADAproducts['isactive'] ."", 1, "1");
break;
}
return $comparisons;
Thank You