Filter in Server side data
Filter in Server side data
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 :)
but it doesn't work. Help me please.
oTable.fnFilter( "(" + vals[0] + ")|(" + vals[1] + ")|(" +vals[2] + ")|(" +vals[3] + ")" , 4, false );
thank you in advance :)
This discussion has been closed.
Replies
regards, Alex
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