how to insert, edit, update and delete data in mongoDB with codeigniter

How to create collection and insert, delete and update data in mongoDB

In this tutorial I will explain you how to create collection and insert, delete and update data in mongoDB. after installing mongoDB read this tutorial How to install up MongoDB and PHP on Ubuntu In mongodb you don’t need to create collection. MongoDB creates collection automatically, when you insert some document. >db.mycollection.insert({“name” : “w3code”}) >show […]

Continue reading


how to edit update and delete data codeigniter without refreshing page.

How to make multiple website(subdomain of your main site) in codeigniter with same code and database dynamically

In this tutorial I will explain you how to make multiple website(subdomain of your main site) in codeigniter with same code and database dynamically. I hope you are little bit faimliear with multiple website.In multiple website we create the subdomain of the website and use the same database and same code structure for all the subdomain. […]

Continue reading


In This article I will explain you how to create connection with database in codegniter. First create a database with any name eg. Mydatabase Now open the codeigniter folder.Now click on application and now open config folder.Find out the database.php file in this folder.Open the file and fill the database name and username and password. […]

Continue reading


how to edit update and delete data codeigniter without refreshing page.

Codeigniter:How to get the last inserted id?

In this small articale I will explain you how to get the last inserted ID from the database in codeigniter  .This is a very easy task. You just need to write a single code line just after inserting the data and you will get the last inserted Id from the database. $data = array(‘name’=>’rakesh’,’lastname’=>’negi’); $this->db->insert(‘tablename’,$data); […]

Continue reading