[SOLVED] Accessing User data |
11/22/2011 1:47:55 AM |
PHPRunner General questions | |
R
Ruined1 author
My user's login in and personal info are all grouped together. |
|
C
|
cgphp 11/22/2011 |
In the "Before record added" event enter the following code: $rs = CustomQuery("SELECT * FROM vUsers WHERE UserID='".$_SESSION['UserID']."' LIMIT 1"); |
R
|
Ruined1 author 11/22/2011 |
In the "Before record added" event enter the following code: $rs = CustomQuery("SELECT * FROM vUsers WHERE UserID='".$_SESSION['UserID']."' LIMIT 1");
$rs = CustomQuery("SELECT * FROM vUsers WHERE UserID='".$_SESSION['UserID']."' LIMIT 1");
|
C
|
cgphp 11/22/2011 |
Do you want to autofill textboxes when the add page is loaded ? In this case enter the code in the "Process record values" event of Add page (not in the "Before record added" event): $rs = CustomQuery("SELECT * FROM vUsers WHERE UserID='".$_SESSION['UserID']."' LIMIT 1");
|
R
|
Ruined1 author 11/22/2011 |
Do you want to autofill textboxes when the add page is loaded ? In this case enter the code in the "Process record values" event of Add page (not in the "Before record added" event): $rs = CustomQuery("SELECT * FROM vUsers WHERE UserID='".$_SESSION['UserID']."' LIMIT 1");
|
C
|
cgphp 11/22/2011 |
If Username is the user login field, the query becomes the following: $rs = CustomQuery("SELECT * FROM vUsers WHERE Username='".$_SESSION['UserID']."' LIMIT 1"); |
R
|
Ruined1 author 11/23/2011 |
If Username is the user login field, the query becomes the following: $rs = CustomQuery("SELECT * FROM vUsers WHERE Username='".$_SESSION['UserID']."' LIMIT 1");
|