Welcome Guest, Not a member yet? Register   Sign In
URI Segment Question
#1

[eluser]mfroseth[/eluser]
Hello,
I am curious as to why this no longer works for me. It worked when I first built my application where there was very little data, now however I have over 25000 records so am wondering if I need an alternative.

This function should delete the record from the database based on the ID that is passed through. Here is my code:

Code:
public function deleteLead() {
  if($this->session->userdata('logged_in', TRUE))
  {
   // Grab Lead Type ID
   $lead_id = $this->uri->segment(3, 0);
   //Remove
   $this->db->delete('lead_details', array('lead_id' => $lead_id));
   // Redirect
   redirect('leads/showAll', 'refresh');

  }
  else
  {
   $this->login();
  }
}


Messages In This Thread
URI Segment Question - by El Forum - 06-26-2013, 06:28 AM
URI Segment Question - by El Forum - 06-26-2013, 03:15 PM
URI Segment Question - by El Forum - 06-26-2013, 03:23 PM
URI Segment Question - by El Forum - 06-28-2013, 12:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB