ajaxCRUD.com

» a PHP class to create / read / update / delete from a database table using AJAX

   by loud canvas media

AjaxCRUD API Reference

<< Reference overview
<< Home

addOrderBy

orders the table by a specified field
void addOrderBy ( String orderBySQL )
This function merely injects the SQL with the "ORDER BY" expression and you can specify what field(s) you want to order the table by.

Details

Type function
Returns void

Parameters

orderBySQL
The SQL "order by" string (must begin with "ORDER BY")

Example

$tblDemo->addOrderBy("ORDER BY fldSort asc");

See also

New, Edit

 

"Very interesting class. Thanks a lot."
~gustavo