Welcome Guest, Not a member yet? Register   Sign In
2 variables in where clause?
#1

[eluser]Samus[/eluser]
Is it possible to pass 2 arguements as variables in the where clause?

e.g

$this->db->where($var1, $var2);

So effectively. Where $var1 is equal to $var2

Is this possible? It keeps producing a query along the lines of.

'where `0` = $var1 and `1` = $var2'

Anyone help please.




Theme © iAndrew 2016 - Forum software by © MyBB