![]() |
Sergey Kornilov admin 12/30/2009 |
It's not possible this way however you can add your own WHERE clause using BeforeSQLQuery event. |
L
|
lewisekrantz 12/30/2009 |
It's not possible this way however you can add your own WHERE clause using BeforeSQLQuery event. See example at http://www.xlinesoft.com/phprunner/docs/modify_sql_query_on_the_fly.htm
|
L
|
Lloyd author 12/30/2009 |
It's not possible this way however you can add your own WHERE clause using BeforeSQLQuery event. See example at http://www.xlinesoft.com/phprunner/docs/modify_sql_query_on_the_fly.htm
|
L
|
lewisekrantz 12/31/2009 |
added the following to the BeforeSQLQuery event: if ($_SESSION["UserID"]!="admin") { $strWhereClause = whereAdd($strWhereClause, "access.id = $_SESSION['user id']"); } and got a the following error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in line 3 Can you tell me the correct syntax for this. Thanks Lloyd
|
J
|
Jane 1/7/2010 |
LLoyd, if ($_SESSION["UserID"]!="admin") |