How to fetch single row from database in php codeigniter

In this tutorial we are going to see how to get only one row. we can easily return one row from database in codeigniter.

I will give you simple example of fetch single record from database using mysql codeigniter.

Sometime we need to get only one record from database. might be you require to get last one row from database or fetch any single row using where or other condition. So just see bellow query how it make done.

Another method single line query in codeigniter

Add a Comment

Your email address will not be published. Required fields are marked *