Hi,
I'm trying to create a custom dropdown list that will display only contacts owned by the current logged in user so the user can pick email addresses for only their own contacts
Relevant table/field names are:
users table containing the userID field
contacts tables also containing userID
UserId is numeric.
In the WHERE part of the lookup wizard I've tried using one of the expressions given in the sample...
"userID=".$_SESSION["UserID"]
This gave a php error "Unkown column 'fred' in where clause". As 'fred' was the name of the user it seems I'm getting the user's name and not the numeric userID.
What should the correct expression be?