Welcome Guest, Not a member yet? Register   Sign In
prevent database update when no where statement found
#3

[eluser]Michael Wales[/eluser]
To expound on this a bit more - the update() method is doing exactly what you tell it to. Just as with MySQL, if you omit the WHERE portion of the statement it will update the entire table (since that is what you are telling it to do). CodeIgniter's the same way - you are telling it to update the entire table - it's going to do what you tell it to do.


Messages In This Thread
prevent database update when no where statement found - by El Forum - 01-09-2009, 01:19 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 01:32 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 01:33 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 01:41 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 01:55 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 02:10 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 02:23 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 02:37 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 02:42 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 03:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB