| Index
» Projects
» phpMyEdit
» Forum
» filter field |
 |
yyg
Joined: 24 Apr 2008
Posts: 2
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
|
|
|
|