Welcome Guest, Not a member yet? Register   Sign In
Multiple where clauses in getwhere
#1

[eluser]RobbieL[/eluser]
Is it possible to have multiple where clauses in getwhere function? Or is it best to just use multiple where function instead?
#2

[eluser]Ryuuzaki92[/eluser]
Code:
$query = $this->db->getwhere('mytable', array('id' => $id), $limit, $offset);

pass the 2nd parameter as an array with all your where clauses.
#3

[eluser]RobbieL[/eluser]
That simple, huh? Big thanks Ryuuzaki92. Much appreciated. Smile
#4

[eluser]Ryuuzaki92[/eluser]
[quote author="RobbieL" date="1195332212"]That simple, huh? Big thanks Ryuuzaki92. Much appreciated. Smile[/quote]

np. read the user guide next time ;-P




Theme © iAndrew 2016 - Forum software by © MyBB