Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Linking UID to logtable

phpMyEdit General     Linking UID to logtable
Post new topic   Reply to topic    
 
RuiLapa     Joined: 04 Sep 2006   Posts: 1  
Post Posted: 2006-09-04 17:37
Back to top  Reply with quote     

Users:
Id bigint(10)
Name varchar(30)
Password varchar(30)

I would like to know who and what changed in the table.
For that I've configured 'logtable'.

I'm trying to link the Users record to the logtable without success.

$opts['fdd']['Id'] = array(
'name' => 'History',
'select' => 'D',
'display' => 'V',
'options' => 'VL',
'values' => array(
'table' => $opts['logtable'],
'column' => 'rowkey',
'filters' => sprintf ("tab='%s' AND operation='update'", $opts['tb'] ),
'description' => array(
'columns' => array('rowkey', 'col', 'oldval', 'newval'),
'divs' => array(' ', ':', '->')
)
),
);

Any help would be appreciated.

 
michal     Joined: 17 Jun 2003   Posts: 537   Location: Slovakia
Post Posted: 2006-09-06 15:54
Back to top  Reply with quote     

afaik, you are trying to make a n to m connection, which is really hard.

it would be easy to create an interface to logtable, make links to users and records. then use $opts['filters'] to limit the query.

then just create a link history to the logtable with appropriate filters.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy