CodeIgniter: delete data from database

Hi guys! In this tutorial I will speak about how you can easily delete data from database with CodeIgniter Framework.

To delete data from database with CodeIgniter, you must use this function:

function delete()
{
$data = array("id"=>"6"); // with this code I will delete data from database where id is 6.
$this->db->delete("data",$data); // will delete data
}

In this way you can delete data from database with CodeIgniter!

Video tutorial:









Leave a Comment