This topic is locked

Hide record, when edit record

7/21/2011 5:44:35 AM
PHPRunner General questions
F
frmn author

how to hide records, from 8 record to 2 record ?

when i click button edit link, 6 record to hide

example code :
in edit page --before display-- :
if($values["status"] = "closed"){

$xt->assign("notification_user_fieldblock1",false);

$xt->assign("notification_user_fieldblock2",false);

}
when i click button save, there is no process at all

help me....

C
cgphp 7/21/2011

frmn,
check the if statement,it is not a condition evaluation but an assignment. You have to use == not = The right code:

if($values["status"] == "closed")

{

$xt->assign("notification_user_fieldblock1",false);

$xt->assign("notification_user_fieldblock2",false);

}