C
|
cgphp 2/14/2012 |
You can sort a lookup table using the WHERE expression. Check this article: http://xlinesoft.com/phprunner/docs/lookup_wizard.htm |
![]() |
lefty 2/14/2012 |
I have a database shared by multiple organizations. In the user table, each user is associated to their organization with a integer Org_ID. Based on who is logged in, I would like to filter a lookup table to only display choices by organization. For example, Org_ID 1000 is an engineering firm, Org_ID 2000 is a legal firm. The lookup table holds position titles: Org_ID Title 1000 Engineer 1000 Manager 1000 Chief Technology Officer 2000 Associate 2000 Legal Administrator 2000 Lead Council 2000 Investigator 2000 Document Processor When a user from the engineering firm logs in, I create a SESSION variable storing their Org_ID as 1000. If a user from the legal firm logs in, the session variable holds the value of 2000. How can I use the session variable as part of my query statement to create a lookup table that only has options specific to what type of user is logged in?
|