W
|
wildwally 3/23/2012 |
It looks like you might have things out of order from what I can tell and what you have posted. |
S
|
Sergej author 3/23/2012 |
It looks like you might have things out of order from what I can tell and what you have posted. The way I have gotten mine to work is like such: In the Login Page after succesful login: <code> global $conn; $str = "select * from dbo.table_ugmembers where UserName='".$username."'"; $result = db_query($str,$conn); $data1 = db_fetch_array($result); $_SESSION['Group'] = $data1['GroupID']; </code> Then on the list page of your choice List page:After record processed use: <code> if ($_SESSION['Group']=-1) { $record["edit_link"] = true; } else { $record["edit_link"] = false; } </code> **EDIT - I thought I had it working, apparently not. Disregard my instructions.
|