[SOLVED] Restric records list - based on NT login |
8/22/2011 08:52:14 | |
| PHPRunner General questions | ||
|
M
marimach77 author
Dear Colleagues, |
||
|
C
|
cgphp 8/22/2011 |
|
Hi Mariusz, global $conn; |
|
|
M
|
marimach77 author 8/22/2011 |
|
Hi Cristian, global $conn;
|
|
|
C
|
cgphp 8/22/2011 |
|
It is intended to be used in the "Before SQL query" event of the Desktop list page. Where do you want to use it ? |
|
|
M
|
marimach77 author 8/22/2011 |
|
It is intended to be used in the "Before SQL query" event of the Desktop list page. Where do you want to use it ?
|
|
|
C
|
cgphp 8/22/2011 |
global $conn; |
|
|
M
|
marimach77 author 8/23/2011 |
$rs = CustomQuery("SELECT RoleName FROM User2Site WHERE UserLogin='".$_SERVER["REMOTE_USER"]."' LIMIT 1",$conn);
|
|
|
C
|
cgphp 8/23/2011 |
|
Sorry, I assumed that you were working with mysql. You are using SQL server 2005 instead. Try this: global $conn; |
|