I am working with "Rest API's/web services" in codeigniter,And i want to make Api secure So for this purpose i am using following query (for example)
$sql = "INSERT INTO table (title) VALUES(".$this->db->escape($title).")";
I want to know that above way is enough for prevent sql injection using codeigniter or there should be something more ?