Search
 
SCRIPT & CODE EXAMPLE
 

PHP

codeigniter query builder order by

$this->db->order_by('title', 'DESC');
// Produces: ORDER BY `title` DESC
Comment

order by in codeigniter query builder

$this->db->order_by('RegisteredUserID','ASC')
// Produces: ORDER BY `RegisteredUserID` ASC

$this->db->order_by('RegisteredUserID','DESC')
// Produces: ORDER BY `RegisteredUserID` DESC
Comment

PREVIOUS NEXT
Code Example
Php :: Limit Product Name in Magento2 
Php :: Get Parameters From a URL String in PHP 
Php :: how to document php api with swagger 
Php :: php get query params 
Php :: minuscule string php 
Php :: php check if folder empty 
Php :: php call protected function from child class 
Php :: add column in existing table in laravel 
Php :: dir name php 
Php :: remove 1 day from date in php 
Php :: php serialize 
Php :: default null migration laravel 
Php :: How to fix undefined index: name in PackageManifest.php line 131 error with Composer 
Php :: How to create an array from a CSV file using PHP 
Php :: datetime iso 8601 php 
Php :: php curl pass user:password 
Php :: laravel create password hash 
Php :: count sql query in php 
Php :: deleteall in cakephp 
Php :: toaster message in laravel 
Php :: php curl 
Php :: php key value dictionary 
Php :: laravel storage save file folder on disk 
Php :: sortbydesc on a collection laravel 
Php :: sanitize user input php 
Php :: is users logged in laravel blade 
Php :: laravel migration remove unique 
Php :: laravel 8 date difference in days 
Php :: disable cors policy symfony 
Php :: php select from database into array 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =