S
|
Stucco author 10/9/2011 |
I added a table to the database to create a one to many relationship between users and customers. This allows the setting of any number of customers to be visible by each specific user, however I am having difficulty setting this restriction on the visibility. The query I need to set is like this, but it will not let me save it with the PHP variable.
|
S
|
stiven 10/10/2011 |
i had a problem with the where clause in the sql query design so this is what i did you may try it and see if it works for you... i also notice the parenthesis is closed before and you dont have quotes on the $_SESSION variable
|
![]() |
Sergey Kornilov admin 10/10/2011 |
SQL Standard requires you to use single quotes to wrap text values. |
S
|
Stucco author 10/16/2011 |
I was able to add the restriction in the List and Export page before sql query events. The code looks like this: $strWhereClause = whereAdd($strWhereClause, "users_customers.user_id = " . $_SESSION["user_id"]); |