Skip to content

Instantly share code, notes, and snippets.

@tomshaw
Last active August 29, 2015 13:57
Show Gist options
  • Save tomshaw/9901198 to your computer and use it in GitHub Desktop.
Save tomshaw/9901198 to your computer and use it in GitHub Desktop.
ZF2 DB LOWER LIKE OR
<?php
$select->where
->literal('LOWER(campaign.title) LIKE "%'.strtolower($data['search']).'%"')
->or
->literal('LOWER(campaign.description) LIKE "%'.strtolower($data['search']).'%"');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment