CI_DB_query_builder::or_like()

or_like($field[, $match = ''[, $side = 'both'[, $escape = NULL]]])

Parameters:
  • $field (string) – Field name
  • $match (string) – Text portion to match
  • $side (string) – Which side of the expression to put the ‘%’ wildcard on
  • $escape (bool) – Whether to escape values and identifiers
Returns:

CI_DB_query_builder instance (method chaining)

Return type:

CI_DB_query_builder

Adds a LIKE clause to a query, separating multiple class with OR.

doc_CodeIgniter
2016-10-15 16:31:18
Comments
Leave a Comment

Please login to continue.