Skip to content

Instantly share code, notes, and snippets.

@MrMooky
Created March 24, 2016 11:13
Show Gist options
  • Save MrMooky/21170832dffbf44ef554 to your computer and use it in GitHub Desktop.
Save MrMooky/21170832dffbf44ef554 to your computer and use it in GitHub Desktop.
##### GET USER EMAIL BY ID
lib.userByEmail = COA
lib.userByEmail {
10 = LOAD_REGISTER
10.userID.current = 1
20 = CONTENT
20.table = fe_users
20.select {
selectFields = email
pidInList = 16
andWhere {
#dataWrap = uid = {GP:test}
dataWrap = {register:userID}
dataWrap.wrap = uid = |
}
}
20.renderObj = TEXT
20.renderObj {
field = email
wrap = |
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment