Welcome Guest, Not a member yet? Register   Sign In
Incrementing a counter in the database
#18

[eluser]Phil Sturgeon[/eluser]
Strange. The following works so I assumed that would:

Code:
$this->db->update('table', 'offence_count = offence_count + 1', array('id', 10));


Messages In This Thread
Incrementing a counter in the database - by El Forum - 08-31-2008, 01:28 PM
Incrementing a counter in the database - by El Forum - 09-03-2008, 12:38 AM
Incrementing a counter in the database - by El Forum - 09-03-2008, 01:03 AM
Incrementing a counter in the database - by El Forum - 09-03-2008, 02:41 AM
Incrementing a counter in the database - by El Forum - 09-06-2008, 09:20 AM
Incrementing a counter in the database - by El Forum - 09-07-2008, 10:05 AM
Incrementing a counter in the database - by El Forum - 09-08-2008, 12:47 AM
Incrementing a counter in the database - by El Forum - 09-08-2008, 01:44 AM
Incrementing a counter in the database - by El Forum - 09-08-2008, 02:59 AM
Incrementing a counter in the database - by El Forum - 05-29-2009, 05:59 AM
Incrementing a counter in the database - by El Forum - 05-29-2009, 06:55 AM
Incrementing a counter in the database - by El Forum - 05-29-2009, 07:10 AM
Incrementing a counter in the database - by El Forum - 05-29-2009, 07:16 AM
Incrementing a counter in the database - by El Forum - 05-29-2009, 07:21 AM
Incrementing a counter in the database - by El Forum - 05-29-2009, 07:28 AM
Incrementing a counter in the database - by El Forum - 05-29-2009, 07:32 AM
Incrementing a counter in the database - by El Forum - 05-29-2009, 07:35 AM
Incrementing a counter in the database - by El Forum - 05-30-2009, 11:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB