I’ve seen people use this piece of code and I’m trying to understand what it does because I don’t see it in any of the codeigniter documenation or in the source code for the database class.
$this->db->ar_orderby
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is an array that holds order by columns..
There should be no reason to use this property directly. Instead call
$this->db->order_by('column')which appends to the array automatically.system/database/DB_active_rec.phpLine 42CI_DB_active_record::order_byLine 856CI_DB_active_record::_compile_selectLine 1781