PHP

Flexible ColdFusion & PHP SQL Table Filter

Here is a slick little function that I wrote the other day at work to create a filter on a table.

Pseudo code:

Requirements: The argument names must match the table column names.

Results: Returns a query of the filter table data.

Determine which arguments were passed into the function and add those into the query where statement.

Syndicate content