Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Problem with _cm_filterwhere, how can do this?
Re: Problem with _cm_filterwhere, how can do this? [message #1695 is a reply to message #1694] Mon, 22 September 2008 18:46 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2367
Registered: April 2006
Location: Surrey, UK
Senior Member
You cannot. The $where string is assumed to have been constructed from the primary keys of one or more table rows and may not accept some complex modifications as they may fall foul of the filtering process. This has to unpack the string into an array, examine each part for possible action (such as prefixing a field name with a table name, or removing the field altogether), then convert the array back into a string. During this process it is possible for extraneous parentheses to be removed.

Additional selection criteria may be added by using either $this->sql_where or $this->search.

In the example you give where you are including an additional conditon with an 'AND' I cannot see that the parentheses would make any difference.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Force a PDF page break
Next Topic: _cm_listview_total() problem
Goto Forum:
  


Current Time: Mon Nov 18 23:29:32 EST 2024

Total time taken to generate the page: 0.01297 seconds