Skip to content

Instantly share code, notes, and snippets.

@zerowebcorp
Last active August 29, 2015 14:12
Show Gist options
  • Save zerowebcorp/f5cfb6dd8e8d72196cf3 to your computer and use it in GitHub Desktop.
Save zerowebcorp/f5cfb6dd8e8d72196cf3 to your computer and use it in GitHub Desktop.
<?php
$db->between('created', '2014-05-05', '2014-05-10');
// Produces: created BETWEEN '2014-05-05' AND '2014-05-10'
$db->from('tblinvoices')->where('clientid', '12')->between('created', '2014-05-05' , '2014-05-10')->fetch();
// Produces: SELECT * FROM tblinvoices WHERE clientid = '12' AND created BETWEEN '2014-05-05' AND '2014-05-10'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment