[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();
}
}