CodeIgniter Forums
Querys with >= and <= - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forum-22.html)
+--- Thread: Querys with >= and <= (/thread-54095.html)



Querys with >= and <= - El Forum - 08-22-2012

[eluser]Unknown[/eluser]
I'm trying to do querys with> = and <=, can someone provide an example?


Querys with >= and <= - El Forum - 08-22-2012

[eluser]srpurdy[/eluser]
[quote author="huguitow" date="1345647589"]I'm trying to do querys with> = and <=, can someone provide an example?[/quote]

Code:
->where('fieldname.id >', $variable)

->where('fieldname.id <', $variable)