Posted by Marcin Dobrucki on 03/01/06 13:34
Alternatively you can, ofcourse, do something like this: function munchQuery($query, $col_name = '', $sort_order = '') { if ( !empty($col_name)) { $query .= ' ORDER BY '.$col_name; if ( !(empty($sort_order)) { $query .= ' '.$sort_order; } } return $query } // but IMHO that's hard to maintain properly.
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming