I am trying to some fields of a table readonly for a default user but editable for another. My code goes:
function Page_Load() {
if (CurrentUserLevelID() = 0){
$jo->eqp_id->ReadOnly=TRUE;
}
}
where jo is the table and eqp_id is the field. I get this error if I click the edit button:
Fatal error: Can't use function return value in write context in C:\xampp\htdocs\JO\joedit.php on line 1150
can you guys enlighten me?