Undefined variable: row_ error with Security assist.
Hi Jason,
Having a little trouble with a show region and security assist. Here is what I am hoping to happen ... it basically is a "old stock" inventory entered by several people who have access to the site. A results page shows the list of available product and the ability of editing and deleting the lines are restricted to "Admin" people on this page.
On the "details" page the edit and delete buttons are to show but only to the person who had entered the item. The way I was going to check this is by security assist comparing the login email and comparing it to the email email addresses entered at time it was added to the database "column - tusedtires.adminby".
Unfortunately I am getting an error message stating the variables are Undefined.
To double check that this info is coming into the page I inserted each of these bindings on line 370 and they show up fine.
<td class="DetailsPage"> <?php echo $row_Recordset1['EmailAddress']; ?> - <?php echo $row_WADAtusedtires['adminby']; ?></td>
Could this be more of an error i made in the security assist rules manager? I created a rule called Oldtiresentry and all it is supposed to do is "restrict" showing this item if the email address do not match ...
case "Oldtiresentry":
$comparisons[0] = array(FALSE, "".$row_WADAtusedtires['adminby'] ."", 2, "".$row_Recordset1['EmailAddress'] ."");
break;
Instead I am getting this Error Message on the page ....
( ! ) Notice: Undefined variable: row_WADAtusedtires in C:\wamp\www\support\webassist\security_assist\helpergroupsrulesphp.php on line 29
Call Stack
# Time Memory Function Location
1 0.0004 363416 {main}( ) ..\tusedtires_detail.php:0
2 0.0236 382400 WA_Auth_RulePasses( ) ..\tusedtires_detail.php:393
3 0.0236 382400 WA_Auth_RuleObject_EvaluateRules( ) ..\helper_php.php:410
4 0.0236 382432 WA_Auth_GetComparisonsForRule( ) ..\helper_php.php:415
( ! ) Notice: Undefined variable: row_Recordset1 in C:\wamp\www\support\webassist\security_assist\helpergroupsrulesphp.php on line 29
Call Stack
# Time Memory Function Location
1 0.0004 363416 {main}( ) ..\tusedtires_detail.php:0
2 0.0236 382400 WA_Auth_RulePasses( ) ..\tusedtires_detail.php:393
3 0.0236 382400 WA_Auth_RuleObject_EvaluateRules( ) ..\helper_php.php:410
4 0.0236 382432 WA_Auth_GetComparisonsForRule( ) ..\helper_php.php:415
Any ides on this one?