[eluser]n0xie[/eluser]
[quote author="Gwarrior" date="1244960652"]Hey guys and thanks in advance for taking a look!
if (isset($_POST['submitted_2'])) {
echo 'hurray!';
}
[/quote]
1. Have you checked if the scrip actually gets to this point?
2. What values, if any, are inserted into the query string
3. Was the query executed and if so, what did it execute?
4. What does $_query2 return?
A little bit more information is needed...
Also, why don't you use a model for your database actions? And is there a reason you don't use AR? Wouldn't it be easier to do this?
Code:
$id = $this->input->post('id');
$data['title'] = $this->input->post('title');
$data['desc'] = $this->input->post('desc');
$data['image'] = $this->input->post('image');
$this->db->where('id',$id);
$query_2 = $this->db->update('banners',$data);