Welcome Guest, Not a member yet? Register   Sign In
Simple database query
#6

[eluser]nicholas.byfleet[/eluser]
Oh okay, I see the problem. $this->db->insert() takes an array as the second parameter, you are trying to put an object instead.

Instead, try this sort of format:

Code:
$data = array('createdate' => "2009-06-09",
              'username' => "test",
              'password' => "test",
              'email' => "test",
              'name' => "test");

$this->db->insert('pmd_users', $data);

Let me know if you are having more trouble.


Messages In This Thread
Simple database query - by El Forum - 09-17-2009, 12:29 PM
Simple database query - by El Forum - 09-17-2009, 01:25 PM
Simple database query - by El Forum - 09-17-2009, 01:39 PM
Simple database query - by El Forum - 09-17-2009, 02:03 PM
Simple database query - by El Forum - 09-17-2009, 02:06 PM
Simple database query - by El Forum - 09-17-2009, 02:50 PM
Simple database query - by El Forum - 09-17-2009, 03:58 PM
Simple database query - by El Forum - 09-17-2009, 05:52 PM
Simple database query - by El Forum - 09-17-2009, 05:56 PM
Simple database query - by El Forum - 09-17-2009, 06:02 PM
Simple database query - by El Forum - 09-17-2009, 06:35 PM
Simple database query - by El Forum - 09-17-2009, 08:17 PM
Simple database query - by El Forum - 09-29-2009, 02:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB