applying multiple order by in codeigniter
$this->db->from($this->table_name);
$this->db->order_by("column1 asc,column2 desc");
$query = $this->db->get();
return $query->result();
Also in PHP:
- create laravel 5.8 project using composer
- array length php
- check if substring is present php
- array_key_exists() function
- changing php version in composer in server
- array_search in php
- Your Composer dependencies require a PHP version ">= 7.2.5". You are running 7.2.0. in
- alias seeddb='php artisan db:seed'
- create database seeder in laravel
- displayl errors in php
- FORMATA DATA COM PHP
- db seed in laravel
- codeigniter get num_rows
- ajax call php
- different time formats in php
- Create Laravel Project 7
- create DateTime from timestamp php
- dateFormat php
- date format php sql
- array_reverse in php
- event click right mouse
- Best code editors for php
- Gate::before not working laravel 8
- check if contains ph