Welcome Guest, Not a member yet? Register   Sign In
Simple query insert duplicates
#1

[eluser]JohnnyBravo[/eluser]
Hey everybody,

Do you have any idea why runs this query twice?

maintance_model.php
Code:
function log($name, $message, $type = 'user')
    {
        $entry = array(
            'name' => $name,
            'message' => $message,
            'type' => $type,
            'ip' => $this->input->ip_address(),
            'logdate' => date('Y-m-d H:i:s')
        );

        $this->db->insert('watchdog', $entry);
        
    }

test it
Code:
function test()
    {
        $this->watchdog_model->log('system', $this->lang->line('w_unlock_users'), 'maintance');
    }

It insert two rows in the database, and I really don't know why?

Thx for your help!


Messages In This Thread
Simple query insert duplicates - by El Forum - 09-02-2010, 11:05 AM
Simple query insert duplicates - by El Forum - 09-02-2010, 01:37 PM
Simple query insert duplicates - by El Forum - 09-02-2010, 03:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB