• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
$this->db->insert contain fields which I had not delibrately specified.[SOLVED]

Hi, I am new to this forum and have been using codeigniter for almost 6 months.

I am currently being bothered by something which I had ran out of ideas to solve
function newMedia($data){


The above code however gave me the following error.
Quote:Unknown column 'group_id' in 'field list'

INSERT INTO `medias` (`group_id`, `name`, `origName`, `file_path`, `full_path`, `file_ext`, `file_size`, `raw_name`, `image_size_str`, `is_image`, `dateOfCreation`) VALUES ('2', 'Koala1.jpg', 'Koala.jpg', '/home/willwebc/public_html/snobbox/ShopLogo/', '/home/willwebc/public_html/snobbox/ShopLogo/Koala1.jpg', '.jpg', 762.53, 'Koala1', 'width=\"1024\" height=\"768\"', 1, 1322303180)

I was told that there is no group_id in my database, which is exactly the case because it does not have group_id. But however, when I run $this->db->insert, somehow the query generated by $this->db->insert has this column.I am puzzled...

Please advice on what else i can do and if there is another thread that may help me, please direct me to it as well.

Thank you in advance =).

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.