Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  How to filter the list based on user id

phpMyEdit Configuration     How to filter the list based on user id
Odoslať novú tému   Odpovedať na tému    
 
nkt     Založený: 16.05.2008   Príspevky: 14  
Príspevok 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  
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov