Welcome Guest, Not a member yet? Register   Sign In
Is there any way to check before call the $this->db->update() method, Is where condition set or not?
#4

[eluser]Mirge[/eluser]
If you are wanting to view the query BEFORE it gets executed to check to see if a WHERE clause is found, you can use:

Code:
$query = $this->db->_compile_select();
// now you can look at $query to see if a 'WHERE' clause is found.

Note that $this->db->get() uses this method... not generally something you call directly.


Messages In This Thread
Is there any way to check before call the $this->db->update() method, Is where condition set or not? - by El Forum - 09-18-2012, 09:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB