Welcome Guest, Not a member yet? Register   Sign In
Extra content being inserted using Active Records
#4

[eluser]WanWizard[/eluser]
The AR code doesn't insert records twice, so something else must be causing this.

Activate logging by setting the log_threshold in config/config.php to 4.
Delete or empty any logfiles that are present, perform the action again, and check your CI logs. Anything unusual? Redirects or reloads of the page?

Another test: directly after the insert, add a 'die("stop here");' to make sure your script doesn't continue. Do you still have two records inserted?


Messages In This Thread
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 06:39 AM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 08:13 AM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 08:28 AM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 09:07 AM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 09:25 AM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 01:19 PM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 02:25 PM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 02:50 PM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 03:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB