lookup table filter

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
lamany77
User
Posts: 144

lookup table filter

Post by lamany77 »

hi alll
i have a code on lookup table filter

i have code below :

"active='1' and code='".currentuserinfo("code_lem")."'";

but not work

but if i try :
"active='1'"
it works

i hope the solution from you guys
thanks you very much


arbei
User
Posts: 9284

Post by arbei »

If the user is not logged in, there is no current user info yet. You should check if the value has value first, then add the filter, e.g. you may use PHP ternery operator (? :).


mobhar
User
Posts: 11660

Post by mobhar »

Try CurrentUserInfo instead of currentuserinfo.


lamany77
User
Posts: 144

Post by lamany77 »

thanks all.
it;s works


Post Reply