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?
#5

[eluser]Sarwar CSE[/eluser]
[quote author="Mirge" date="1347985483"]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.[/quote]
Thanks Mirge

Is there any way to extend the db class?
Like core class(Controller,Model)
Thanks
Sarwar Hasan


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:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB