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  »  filter field

phpMyEdit General     filter field
Post new topic   Reply to topic    
 
yyg     Joined: 24 Apr 2008   Posts: 2  
Post Posted: 2008-09-19 12:50
Back to top  Reply with quote     

I have found a trivial workaround but still would appreciate
a more elegant solution using filters
Patch: two SQL queries at the beginning of the php code.

-----------------------------------------------------------

I want to replace the value in one column "pdf" when value in
one other column "cprd" in the same table is equal to "YES".
Not displaying the value of 'pdf' when the condition is met is also fine.

I inserted this code in the description of field 'pdf'

'values' => array(
'table' => 'article',
'column' => 'pdf',
'description' => 'anything',
'filters' => 'cprd = "YES" ')

I did not add anything anywhere else.

The value is still displayed.

I guess I did not understand what "filter' does in a field.

Thanks in advance - Jacques

 
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