[eluser]Mike DeFelice[/eluser]
I'm not too sure this falls into the Codeigniter category or not.
I am CI 2.02. Here is the problem, I have a transaction (locks up with or without using a transaction)
Code:
$this->db->trans_start();
$this->db->set('meta_title', $this->input->post('meta_title'));
$this->db->set('meta_keywords', $this->input->post('meta_keywords'));
$this->db->set('meta_description', $this->input->post('meta_description'));
$this->db->set('album_title', $this->input->post('album_title'));
$this->db->set('album_url', $this->album_url);
$this->db->set('galleryID', $this->input->post('gallery_id'));
$this->db->set('date', date('F j, Y'));
$this->db->set('siteID', $this->general->site_info_from_url('siteID', $this->input->post('site_url')), FALSE);
$this->db->insert(TABLE_ALBUMS);
$this->db->set('total_albums', 'total_albums+1', FALSE);
$this->db->where('galleryID', $this->input->post('gallery_id'));
$this->db->limit(1);
$this->db->update(TABLE_GALLERY);
$this->db->trans_complete();
return $this->db->trans_status() !== FALSE;
now the form which corresponds to this transaction has a JQuery search to grab the gallery_id. Here is the problem, most of the time the site will just hang and nothing is added, I also tested with logging and it seems to get through the coding above but nothing gets added. However if I use the JQuery field right before submitting it goes through great every time. I am at a loss on what to do, I tried recreating the database, ram is good over a gig free, tried tuning mysql to see if that's it, nothing really seems to get it working.
Thank you so much if anyone can give me any insight into this problem.