Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Call to undefined method CI_DB_mysqli_result::order_by()

In CodeIgniter's Active Record, every method returns the object itself (which allows method chaining) except for get and get_where which return the result set.

Thus, what you need to do is:

$query = $this->db->order_by('birth_date', 'ASC')->get_where($this->tbl_name, $where);
Comment

PREVIOUS NEXT
Code Example
Php :: if condtion in varibale value how to change in loop in php 
Php :: php explode and get first value 
Php :: laravel request protected prop 
Php :: connexion à la base de donnée microsoftsqlserver avec php 
Php :: laravel route limit parameter 
Php :: encapsulation in php 
Php :: group by count mongodb laravel 
Php :: Fetch pivot data laravel 
Php :: Add to cart, link to product page 
Php :: laravel make job command 
Php :: how to deploy php website on server 
Php :: remove null values from array php 
Php :: wp post view 
Php :: cakephp sql query 
Php :: Laravel unique cheque using multiple column 
Php :: laravel telescope tutorial 
Php :: php artisan key:generate error 
Php :: php if isset 
Php :: get image field in custom post type category taxonomy 
Php :: Laravel all() and get() 
Php :: laravel eloquent with 
Php :: array filter php get first object 
Php :: query builder laravel 
Php :: codeigniter sms send 
Php :: In PackageManifest.phpIn PackageManifest.php line 122: Undefined index: name line 122: Undefined index: name 
Php :: Laravel render stuff in a given environment 
Php :: oop in php 
Php :: php implode in html tags 
Php :: laravel send data with a redirect 
Php :: phpexcel 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =