nkt
Založený: 16.05.2008
Príspevky: 14
Zaslal: 2008-05-17 08:59
Návrat hore
Odpovedať s citátom
|
I want the users to only view the records submitted by them only. Can someone point me to the filter code which performs this operation?
|
nkt
Založený: 16.05.2008
Príspevky: 14
Zaslal: 2008-05-17 19:07
Návrat hore
Odpovedať s citátom
|
| doug Napísal: |
| Kód: |
$opts['filters'] =
'PMEtable0.user_id = "'.$_SESSION['sess_user_id'].'"
AND PMEtable0.user_name = "'.$_SESSION['sess_user_name'].'"'; |
|
Thanks Doug, I do not have user_id table so I just compared the username only and it worked ok and did show the username's records only.
I am also havinf search feature in the list. When I use the code above, I can not search other user's records. I can only search my records. So how do I bypass this filter for the Search feature.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|