Welcome Guest, Not a member yet? Register   Sign In
Why does this code break my view?
#2

[eluser]座頭市[/eluser]
Your syntax for the array is wrong:

Code:
/*
|=============
| Notice that you should be using =>
| not = to set key/value pairs.
| Also, you should be using commas not
| semi-colons to separate the data.
|=============
*/
  $data = array(
   'seller_id'   => '1',
   'category_id'   => $this->input->post('category_id', TRUE),
   'brand_id'   => $this->input->post('brand_id', TRUE),
   'size_id'   => $this->input->post('size_id', TRUE),
   'item_title'  => $this->input->post('item_title', TRUE),
   'item_desc_short' => $this->input->post('item_desc_short', TRUE),
   'item_desc_long' => $this->input->post('item_desc_long', TRUE),
   'price' => $this->input->post('price', TRUE),
   'condition_id'  => $this->input->post('condition_id', TRUE),
   'color' => $this->input->post('color', TRUE),
   'material'   => $this->input->post('material', TRUE),
   'measurements'  => $this->input->post('measurements', TRUE),
   'img_1' => '1',
   'img_2' => '2',
   'img_3' => '3',
   'img_4' => '4'
  );


Messages In This Thread
Why does this code break my view? - by El Forum - 07-18-2007, 10:05 PM
Why does this code break my view? - by El Forum - 07-18-2007, 10:38 PM
Why does this code break my view? - by El Forum - 07-18-2007, 10:40 PM
Why does this code break my view? - by El Forum - 07-18-2007, 10:50 PM
Why does this code break my view? - by El Forum - 07-18-2007, 10:54 PM
Why does this code break my view? - by El Forum - 07-18-2007, 11:06 PM
Why does this code break my view? - by El Forum - 07-18-2007, 11:13 PM
Why does this code break my view? - by El Forum - 07-19-2007, 04:31 PM
Why does this code break my view? - by El Forum - 07-19-2007, 04:36 PM
Why does this code break my view? - by El Forum - 07-19-2007, 04:45 PM
Why does this code break my view? - by El Forum - 07-19-2007, 04:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB