Filter in Server side data

Filter in Server side data

akmalkhonakmalkhon Posts: 15Questions: 0Answers: 0
edited December 2009 in General
Hello! I am trying to use filter in server data using the example php.

but it doesn't work. Help me please.

oTable.fnFilter( "(" + vals[0] + ")|(" + vals[1] + ")|(" +vals[2] + ")|(" +vals[3] + ")" , 4, false );

thank you in advance :)

Replies

  • pktmpktm Posts: 27Questions: 0Answers: 0
    Please show more code or at least, explain your code. With that snipplet, I cannot help you. Ans please surround your code with code-tags.

    regards, Alex
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi akmalkhon,

    If you want to do regular expression filtering then you'll need to modify my example PHP / SQL code to do that, as at the moment this will not work - it will do a literal search for the string you are passing, rather than four OR values.

    Here is a link to the MySQL documentation of regular expressions, which might help: http://dev.mysql.com/doc/refman/5.1/en/regexp.html

    Regards,
    Allan
This discussion has been closed.