Jump to content

Members condition in database


Stephane

Recommended Posts

Hi,

I use a database in the PAGES system.

I would like to use the "user" field to give data access. If I use only one user, all it's ok

{{if member.member_id == $record->field_20}}

For now, I put 2 user in my user field and this code does work.

My field # 20 gives me this result for my 2 users: 206,1 (for the user 206 and user 1)

I want to make a condition based on user entered into the fields. I'm test this, but it does not.

{{if member.member_id == in_array( member.member_id, array($record->field_20) )}}

Thank's for your support...

Stef

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...