How to get last inserted id in Codeigniter?

How to get last inserted id in Codeigniter?

We require to get last insert record id from database in controller, so in this tutorial we will learn how to get last insert id in Codeigniter 3 project.

It very often needs to get last inse ...

how to show success message in Codeigniter?

How to show success message in Codeigniter?

Today we will learn how to display flash alert messages in Codeigniter application.

As we know, flash message(notification, alert) feature is very important because clients can understand the ...

how to get current URL in Codeigniter?

How to get current URL in Codeigniter?

In this article, we will explain to you how to get the current URL in Codeigniter. we can easily get the current Url using the helper URL.

We how to get current URL path in your controller fi ...

How to get last query in PHP Codeigniter?

How to get last query in PHP Codeigniter?

Are you wanted to get last executed SQL query in Codeigniter, then i will help to get last query in Codeigniter. we can get last query to using last_query() function in Codeigniter.

It is a v ...

php foreach loop with example

Php foreach loop with example

The PHP Foreach loop statement only works with arrays and objects.PHP provides the Foreach loop statement that allows you to iterate over elements of an array or public properties of an object. If ...

how to insert image in php ?

How to insert image in php ?

In this tutorial, You can save your uploading images in the database table for later use. display any images, create the image gallery, etc.

In this tutorial, I show the methods for storing i ...

how to insert data into MySQL db using form in PHP database?

How to insert data into MySQL db using form in PHP database?

You understood how to create database and tables in MySQL. so, you will learn how to execute SQL query to insert records into a table.

The INSERT INTO 'tbl_name' statement is used to insert ...

How to Disable Submit Button After Form Submission in PHP?

How to Disable Submit Button After Form Submission in PHP?

I will help you with how to disable the submit button after click in jquery PHP. we can prevent click submit button in jquery HTML. So that it will help you to disable submit button after click in ...

How to Get Difference Between Two Dates in PHP?

How to Get Difference Between Two Dates in PHP?

In this code model we are taking two dates and getting their disparities, following code can be utilized to get definite date distinction in days between two dates.

...