This topic is locked
[SOLVED]

 Expiration Table Multiuser

2/21/2013 9:42:24 AM
PHPRunner General questions
S
sickacid author

Hi! i've a table with this field: id, note, date_exp, personal(chkbox) and user
In list page i want to do a filter that works in this way:

if user is blank or filled all user can see and edit record, if user is filled and personal is flagged only the user that insert the record can see and edit hir record.
It's possible?

S
sickacid author 2/22/2013

I've put this in list page: before sql query and do a code in add and edit page to change the user field with name or null when is flagged or not
$UTENTE = $_SESSION["UserID"];

$strWhereClause = "tabella_scadenze.utente='".$UTENTE."' OR tabella_scadenze.utente IS NULL";