Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to check data is updated or not in codeigniter



How to check data is updated or not in codeigniter..

Answer / Surendra Singh

To check if data has been updated in CodeIgniter, you can compare the old and new values of a particular record. Here's an example using an update method:

1. Retrieve the old data from the database (e.g., $old_data = $this->model->getById($id);).
2. Update the record with the new data in your model (e.g., $this->model->updateData($new_data, $id);).
3. Check if the number of rows affected by the update query is greater than 0 to determine if the data has been updated successfully.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CodeIgniter Interview Questions

How to delete a record in codeigniter?

1 Answers  


What are the helpers in codeigniter?

1 Answers  


How to enable codeigniter hook?

1 Answers  


Why is url routes need to be configured?

1 Answers  


How to link images/css/javascript from a view in codelgniter?

1 Answers  


How we can get current method or controller in codeigniter?

1 Answers  


What is difference between laravel and codeigniter?

1 Answers  


Why codeigniter is called loosely coupled mvc?

1 Answers  


What is an orm, list orm’s for codeigniter?

1 Answers  


How to check data is updated or not in codeigniter

1 Answers  


How we can get ip address in codeigniter?

1 Answers  


How to write php code in codeigniter?

1 Answers  


Categories